Replies: 13 comments 16 replies
-
Currently I don't think we can, but I think we could add a If @garyrussell is ok with this, I think you can open an issue for this enhancement. Thanks for the suggestions! |
Beta Was this translation helpful? Give feedback.
-
Just to clarify when I said "then set a different delay for subsequent retries" - I meant e.g. 24 hours for the first delay followed by a retry of 5m, 1 hr, 2 hr. |
Beta Was this translation helpful? Give feedback.
-
Ok, so for example Of course, the first delayed attempt also counts as an attempt, so if it's 5 attempts, would be 0, 24h, 5m, 10m, 20m. |
Beta Was this translation helpful? Give feedback.
-
Yes, it's possible to set an initial delay of x hours and then use a different delay for subsequent retries. Most job processing frameworks support this through custom delay logic or retry configurations. |
Beta Was this translation helpful? Give feedback.
-
For example, you can configure the first delay manually (e.g., 2 hours) and apply a retry strategy for later attempts (e.g., exponential backoff or fixed intervals). This is often done with hooks or middleware in frameworks like Sidekiq, BullMQ, or Celery. |
Beta Was this translation helpful? Give feedback.
-
If your framework doesn’t natively support this, you can programmatically check the attempt count and adjust the delay accordingly. Let me know your specific use case or framework for further details! |
Beta Was this translation helpful? Give feedback.
-
Yes, you can set an initial delay of x hours and a different delay for subsequent retries in most job processing frameworks by combining manual configuration and retry strategies. |
Beta Was this translation helpful? Give feedback.
-
For the initial delay, configure it explicitly (e.g., using a countdown or delay setting). For retries, use a backoff strategy or custom retry logic to adjust the delay dynamically. |
Beta Was this translation helpful? Give feedback.
-
If the framework lacks native support, you can write custom logic to check retry counts and apply specific delays for the first and subsequent attempts. Let me know your setup for more details! |
Beta Was this translation helpful? Give feedback.
-
@tomazfernandes Is it possible to set an initial delay of x hours then set a different delay for subsequent retries?
Beta Was this translation helpful? Give feedback.
All reactions