Conversation
- an explicit flush is needed or child jobs won't be updated - no need to forward port, this was fixed already in 16.0+
|
@trobz-bot /help |
Trobz Bot 🤖Here are the supported commands:
|
|
@trobz-bot /describe |
|
PR Description updated to latest commit (189a307) |
|
@trobz-bot /improve |
PR Code Suggestions ✨
|
PR Type
Bug fix, Enhancement, Tests
Description
_get_common_dependent_jobs_querymethod.enqueue_waitingmethod to use the refactored query.cancel_dependent_jobsmethod to handle child job cancellations.Changes walkthrough 📝
job.py
Refactor and enhance job dependency handlingqueue_job/job.py
_get_common_dependent_jobs_querymethod to refactor common SQLquery.
enqueue_waitingmethod to use the new query method.cancel_dependent_jobsmethod to handle cancellation ofchild jobs.
queue_job.py
Ensure child job state updates and handle cancellationsqueue_job/models/queue_job.py
updated.
cancel_dependent_jobswhen a job is cancelled.test_job.py
Add tests for job dependency state changes and cancellationstest_queue_job/tests/test_job.py
test_button_done_enqueue_waiting_dependenciesto verifydependent job state changes.
test_button_cancel_dependenciesto verify dependent jobcancellations.