Replies: 2 comments 2 replies
-
Fang uses a PostgreSQL db as a task queue. As long as all workers access the same PostgreSQL instance, workload will be distributed across all running workers Each worker fetches and locks a task, so tasks are executed only once.
The task will stay forever in in_progress state. I think it's a developer's responsibility to make sure there are no panics in application logic. You can change the state of a failed "in progress" task manually to re-execute it If a task returns |
Beta Was this translation helpful? Give feedback.
-
Of course
You can always submit a pr with your changes. Why don't you want to use |
Beta Was this translation helpful? Give feedback.
-
Looking at the documentation and blog-post as well as skimming through the code, I wasn't able to answer the question if
fang
allows scheduling tasks across distributed systems, with multiple workers on different machines.Is there some synchronization to make this work and to prevent duplicate work across multiple workers, as well as a mechanism for another worker to pick up a task if the worker that started it dies before reporting back the task as finished?
Beta Was this translation helpful? Give feedback.
All reactions