Skip to content

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