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

set lastRun before running the function #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skrynauw
Copy link

move lastRun=time.Now() to before running of the function.

Otherwise if it is after the function, the next running time will include the time it took the function to run.

This becomes an issue when using job.At(hh:mm), since if the function takes 15 minutes to run, next run will be at hh:(mm+15)

…if its a long running function, the next run includes the function's running time
@VishalRam
Copy link

Any plans of merging this to master?

@denouche
Copy link

up? this could solve the #16 issue also I think

@denouche
Copy link

Oh, the branch cannot be merged, there are conflicts
@jasonlvhit could you merge this PR, once the conflicts will be resolved?

@aleybovich
Copy link

This one can be closed as I resubmitted the pull request in #116

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

Successfully merging this pull request may close these issues.

5 participants