Closed greefea closed 12 months ago
depends_on / DAG is something i've explicitly not added due to the complexity involved. i'd be open to a very light weight solution for it though. you probably need to do modify def enqueue to check for dependent jobs,
if dependent jobs are active, or queued, they cannot be enqueued, otherwise they can. you'll also need to make sure they don't start processing.
happy to chat about it on slack https://tobikodata.com/slack
What is the best way to do job dependencies with
saq
, like inrq
? Inrq
, users can specify adepends_on
argument when creating a job, and only enqueue the job if the dependencies are finished. I had thought I can hack thebefore_enqueue
and/orbefore_process
hook for this, but it looks like the job will be enqueued/processed no matter what happens in the hook. If anyone can help point me to a good way to support it withsaq
, I can write the code and do a PR.BTW, thanks for a fast, light-weighted, yet powerful package!