How i can split a SQL query in multiple tasks ?! #434
Unanswered
ricardojlrufino
asked this question in
Q&A
Replies: 1 comment
-
Yeah db-scheduler can support such a use-case.
Here is an example of such a spawner task |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to know if this project can meet the following use case.
Today I have a project that has a scheduler, which queries the database, and for each line it has to make an HTTP call.
I would like to parallelize this across several PODs (in Kubernets), however the first problem would be that @schedule needs to run in only 1 of the PODs to avoid conflicts, then it creates tasks to be executed in the other PODs
To solve the problem of running only 1 schedule at a time, I think about creating a Lock (https://github.com/coditory/sherlock-distributed-lock), and then creating the tasks separating the database query using a Limit.
But there would only be one problem that I would have to release the lock when all X tasks have finished.
How could I do that?
Beta Was this translation helpful? Give feedback.
All reactions