Comments (4)
I have no plans to implement this but happy to accept a well written + tested PR. Happy to help you through it, let me know if you're interested.
from saq.
Yea, it's designed to recover, so a shut down worker will cancel jobs immediately, and they'll picked up by other workers. This was the pattern we used.
hit me up on slack
The issue with this approach from what I remember is that when a machine is taken off line, it's immediate, there's no buffer time -- you don't really control that on something like kubernetes, so you want to cancel the jobs asap. If you have some kind of wait time, it's possible the machine just shuts down and you don't get to clean up tasks.
from saq.
Would like to create a PR to help support this. Ran into an issue where updates to machines would take down the workers and cause tasks to be aborted while in progress. Would like to take fleet of machines processing jobs individually draining jobs from them first before taking them offline.
from saq.
No change needed, will design all tasks that use the worker library to be atomic so they can re-run safely if they are aborted halfway through.
from saq.
Related Issues (20)
- duplicate jobs displayed in monitor
- Beginners ask for help HOT 1
- May I ask the experts how the 【swept】 error is caused? How to Troubleshooting? HOT 1
- cronjob is not respecting current timezone HOT 1
- cron jobs running at millisecond interval in tests HOT 2
- Running an action after a task fails and there are no more retries left HOT 1
- Please release version 0.12.3 HOT 1
- Running multiple workers HOT 9
- cron job updating HOT 6
- Windows Support HOT 2
- SAQ clients hang if one of workers is dead HOT 9
- "RuntimeError: read() called while another coroutine is already waiting for incoming data" while asyncio.gather job.refresh HOT 4
- For TERMINAL_STATUSES call after_process hook after the job status is updated HOT 1
- Random sweeping of jobs HOT 6
- 404 not found (task in web view) HOT 3
- Heartbeat-based task interruption not working as expected HOT 15
- job stuck in active state if saq process got killed
- Add a log config when starting SAQ HOT 1
- not working in windows due to asyncio has no add_signal_handler HOT 1
- Cronjob management Runtime support HOT 1
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 saq.