Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlos-granados opened this issue Dec 2, 2020 · 0 comments

Comments

@carlos-granados
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant