Comments (5)
Can you say more about what your concerns are with the delayed behavior? Delayed's behavior prioritizes finishing jobs that have begun to the extent possible before worker shutdown in an attempt not to waste work and minimize job latency. It also leans into the assumption that not every job payload will have been implemented with ideal semantic idempotency. In our view having a more opinionated and curated worker drain/deployment process is an advantage, but would love to learn more about your context.
from delayed.
We currently use Delayed::Worker.raise_signal_exceptions = :term
with delayed_job. I'm hoping that we can switch over to delayed with minimal work/changes needed, and thereby benefit from the performance enhancements it has, as a quick win.
We restart the job servers whenever we deploy (every few days), and we have jobs that take many hours to run. I'm concerned that without this configuration option, after a deployment we'd have jobs that would take a very long time before they can retry.
Thanks for asking @jmileham . Is there more information I should try provide to better speak to your question?
from delayed.
So you're looking to switch to delayed but would need to extend the job timeout, and aren't looking to implement a long-lived draining period in your infra coordination right away? Makes sense. I'll tag out now because @smudge will have smarter thoughts about where to go from here.
from delayed.
Right! Thanks
from delayed.
I started looking into this on Friday, but I'll note that it's a little more complicated than simply adding the feature back. We removed it because it was incompatible with delayed
's multithreading (where a single worker can claim & work off multiple jobs at once, configured via the max_claims
option). Supporting raise_singal_exceptions
in a way that would allow the individual job threads to rescue would require some extra signal-passing across threads that I haven't had a chance to explore yet.
from delayed.
Related Issues (20)
- Configuring Exception Notification on Failure HOT 4
- cron, separate gem or pull request? HOT 3
- Running against a secondary database HOT 10
- How does delayed compare to good_job? HOT 7
- how many simultaneous workers can we run? HOT 2
- Periodic (Cron) jobs HOT 8
- Open to PRs? HOT 10
- Concurrent job not running HOT 4
- Error while reserving job(s): PG::SyntaxError: ERROR: syntax error at or near "SKIP" HOT 5
- how to monitor worker processes HOT 2
- Clarification on idempotency requirement HOT 8
- Difference in error behavior when a job is undefined HOT 4
- Changes in schema usage/assumptions from `delayed_job`? HOT 2
- Consider adding jitter to retry interval
- Handling duplicate jobs HOT 4
- Job failed to load: undefined class/module Delayed::JobWrapper. HOT 2
- Locks not being cleared on SIGKILL HOT 2
- Ruby 3 support HOT 2
- Dashboard UI HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delayed.