-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Is there a way to update the state of a task? #45
Comments
I've found out that when we throw an Error from the celery.node worker, the state of the Task is saved as 'SUCCESS'. This is because the state of the task is hard coded inside the taskHandler, when we call storeResult. |
Hi. Thank you for reporting the issue. Thank you. |
I've submitted a PR in order to solve this, i'm closing this issue. |
…he task is stores as FAILURE. (#49) * Added catch on taskHandler. When an error is raised from the worker, the catch method will store a FAILURE task. * Alter package.json * Correcting package.json * Added post install to package.json * Alter dist in package.json * Alter package.json again... * Added dist folder to project * Altering npm ignore and package.json * Modifiying files for PR to cover issue #45 * Removed dist for PR * Alter test result for FAILURE task * Update src/backends/amqp.ts * Update src/backends/redis.ts * Update redis.ts Co-authored-by: Daniel Henrique Michalichyn <daniel.henrique@st-one.io> Co-authored-by: SunMyeong Lee <actumn814@gmail.com>
In Celery Python we have the method to update the state of a task, like below:
Is there any equivalent method in Celery Node?
My goal is to update the state of the task to FAILURE in case an error occurs in my worker.
The text was updated successfully, but these errors were encountered: