Skip to content
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

How to reset the execution time for a running Schedule? #134

Closed
Magee-Yang opened this issue Jan 11, 2017 · 2 comments
Closed

How to reset the execution time for a running Schedule? #134

Magee-Yang opened this issue Jan 11, 2017 · 2 comments

Comments

@Magee-Yang
Copy link

Magee-Yang commented Jan 11, 2017

I have a Schedule, like Schedule<MyJob>().WithName("DataObtaining").ToRunEvery(1).Days().At(transferTime.Hour, transferTime.Minute); . The "transferTime" was configured in WebPage, when user change this time, this running schedule time have to be updated.
Now, I can realize this requirement through:
(1). Re-initializes JobManager
(2). Delete this job (Schedule) by name and then add new one
Is there some other ways to reset this Schedule directly? Thanks!

@tallesl
Copy link
Contributor

tallesl commented Apr 10, 2017

You got that right. (2) seems to be the less cumbersome than (1) at first glance.

Adding support for such in the future is a good idea, I'm leaving the issue open.

@tallesl
Copy link
Contributor

tallesl commented Sep 2, 2018

See #214.

@tallesl tallesl closed this as completed Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants