Rq: Can a task reschedule itself? If yes, how does this affect dependent tasks

Created on 25 Jun 2020  路  4Comments  路  Source: rq/rq

I have tasks that work with web resources. If a web-server is not reachable when the task is running, can the task reschedule _itself_ and rerun after a certain time? If so, how?

If this is possible and the task has dependent tasks, how does rescheduling the task affect its dependent tasks?

Most helpful comment

Dependent tasks will only execute after successful execution of task it depends on.

RQ supports scheduled job execution, but there's currently no way to configure retries on failed job execution in RQ (although I plan on working on it soon-ish).

All 4 comments

Dependent tasks will only execute after successful execution of task it depends on.

RQ supports scheduled job execution, but there's currently no way to configure retries on failed job execution in RQ (although I plan on working on it soon-ish).

but there's currently no way to configure retries on failed job execution in RQ (although I plan on working on it soon-ish).

@selwin I look forward to this feature. It would come in very handy.

@selwin wrote:

Dependent tasks will only execute after successful execution of task it depends on.

RQ supports scheduled job execution, but there's currently no way to configure retries on failed job execution in RQ (although I plan on working on it soon-ish).

I'd like to assist with this if possible. Is there a feature branch in the works?

@inactivist Looks like this is being actively developed now #1299.

Was this page helpful?
0 / 5 - 0 ratings