-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable/Enable #7
Comments
I agree that downtime and pause/resume are different cases. Adding this feature requires a change in data model that I am not comfortable with it. I think this problem can be solved outside Dalga. What about this?
|
Hm, I see. It does complicate things for me, what with storing data in two places and therefore building a distributed transaction with Dalga. Let me review this and get back to you. |
Hey @cenkalti, so now that I have added ISO8601 support and some key retry features (more to come, though) I took another look at the pause/resume functionality. Assuming that #13 lands, and with what I have in #14 so far, (i.e. the For resumption, it depends on the
If we don't want to make (Note that I wrote most of this last night, before I saw your comments on #13, I'm going to go read them now.) |
Sounds good. Making the We should also handle the case where job is paused while it is running. A suggestion about the terminology, maybe we can call it disable/enable instead of pause/resume. You decide. |
Okay, fantastic.
...Huh. That is a very good point. I guess when it finishes it should update But yeah, we should account for that for sure.
I agree. Now that I think of it, pause/resume sounds like it relates to an instance of the job running, which could be misleading. So we'll do enable/disable. |
This is my next item, to follow #18 |
I realized that Dalga does not have a pause/resume functionality. Would you be open to adding this feature?
There are some specific semantics that I'm interested in for this. For example, if a job would run weekly and the next run is on the 2nd of the month, pausing on the 1st and resuming on the 3rd should skip that iteration, and the job would run again on the 9th.
This is different than a delay caused by downtime. For instance, if the next run is on the 2nd and the system went down on the 1st and came up on the 3rd, it would immediately process the job and reschedule for the 9th.
(From what I understand this is already how Dalga would handle downtime, I am just providing a counter-example to illustrate what I am looking for in a Pause/Resume functionality.)
The text was updated successfully, but these errors were encountered: