-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
When returning an error from a job, 'last_error' is not set and 'status' is in Done #182
Comments
Currently the functionality is not implemented implicitly (I can add that in 0.5). |
OK. I am not committed to marking a job Since I failed to find an example for how to do this explicitly in I would happily submit a PR back with an example in either case if you wouldn't mind giving me a starting point for re-executing a job on failure, either explicitly or implicitly. |
I was able to work around this by adding a cron service, and updating to Haven't had the opportunity to figure out the custom layers & explicit method yet but will update when I can |
I encourage you to look at https://github.com/geofmureithi/apalis/blob/master/packages/apalis-core/src/layers/ack/mod.rs
You can start with the first two for the PR and then we can discuss. |
To be honest, we might be just needing a combination of Ack and Retry in the same layer. |
#215 (comment) Also applies here. |
Currently |
This has been resolved and tested in #374 |
Hello, I have been evaluating apalis w/ postgres as an executor and have a reproducible error where failures in a job are not recorded as failed in the
jobs
table. As such, I'm not sure with how to proceed with having the job retried on failure.Consider the following code snippet:
In this snippet I create a message, based on the job/ TokenDetails, and attempt to publish the message to a destination queue. I return OK or an Err based on the result of whether the message was able to be published
I can trigger an error in this process by changing my AWS default region. Via logs I confirm this is the case that my behavior is causing an error:
But there is no error recorded in
jobs
.last_error
For reference, this is how I am creating the apalis worker.
futures
are polled later on with the API actix-web serverThe text was updated successfully, but these errors were encountered: