Skip to content

The documentation provides an example that does not return the right values #142

@carlos-granados

Description

@carlos-granados

Any worker should return Worker::RESULT_SUCCESS or Worker::RESULT_FAILURE to define if it was successful or not (or not return anything if we want to count all executions as successful). In the example shown in the readme the fibonacci function returns an int. If you call it with the value 1 it will return 1 and this will be interpreted as a job failure. This should be modified to show the right usage of the return values

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions