-
Notifications
You must be signed in to change notification settings - Fork 387
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
Job should execute when schedule in the past #460
Comments
Currently there is no such option, some feature could be introduced like the epsilon concept that gives a time window to execute the job it is not executed for some reason but it's not currently implemented. Anyway, jobs are created quite fast in Dkron, what time difference from the job's time do you use to create jobs? seems that it should be small. Could you post some examples? |
Closing for no answer |
Hi Victor,
I don't know why I did not receive any replied email from you until you
closed this issue. In my situation when I schedule a job throuh
microservice ảchitecture-drop message to rabitmq and somehouse the service
would consume the message down at that time. When the service is up but the
message contains the scheduled time is in the past now so the job can not
be execute by dkron. I think it will be greate if have an option to run a
job frome the past if we want :)
Thank & best regards
On Wed, May 15, 2019 at 21:57 Victor Castell ***@***.***> wrote:
Closed #460 <#460>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#460>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB7QY45TVECSBX4SSHKNAALPVQQGNANCNFSM4GE5EW4Q>
.
--
…____________________________________________________________
*Cong Phan* | Senior Full Stack Engineer
*Address VN *Ehome3 Condominium – Room A8-610, Ho Hoc Lam Street,Ward An
Lac, District Binh
Tan, Ho Chi Minh city, Vietnam
*E-mail* *thanhcongsp@gmail.com <thanhcongsp@gmail.com>*
*Mobile* +84 (0) 949 187 087
*Skype* thanhcong.phan
*Connect. Get ready. We deliver.*
|
It seems to me like dkron is being used somewhat like a task queue processor in this scenario. However, as a suggestion for implementing such a thing, @Victorcoder : Of course, the first question to answer is whether the use case should be supported at all. |
Currently Dkron does not run jobs if there is no leader at the time when a scheduled job should be kicked off. My team struggles with this on a regular basis, since our private network has a nightly maintenance outage. This issue sounds very related. If a Dkron node becomes a leader, shouldn't it consider kicking off a job that was supposed to be launched a minute ago? |
I can consider implementing something like @yvanoers suggested to fix the use case of missing a job creation using a job queue. In your case @drauschenbach, it's related but a bit different, do you think that re-triggering jobs with missed executions on becoming leader will cover your use case? Why "a minute ago"? and not any amount of time? |
I encounter an issue that is when I try to create a job which will be execue at specific time. But some time due to network latency,... then the job is created at time greater than specific time the job should be run. So the schedule is in the past and it can not be executed. Is there any option can make dkron auto execute a job if the schedule put in the past?
Thanks.
The text was updated successfully, but these errors were encountered: