question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad next execution time

See original GitHub issue

@tcn reported us the following issue: Bad next execution time: this schedules for 7th of june rather than 31st of may. The exact location where things go wrong appears to be in generateCandidatesNotIncludingIntervalExtremes(), specifically the while(reference<end).

    final CronParser parser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(UNIX));
    final DateTime now = DateTime.parse("2016-05-24T01:02:50");//.withTimeAtStartOfDay();
    //final DateTime now = DateTime.parse("2016-06-07T00:01:02");//.withTimeAtStartOfDay();
    final ExecutionTime executionTime = ExecutionTime.forCron(parser.parse("1 0 * * tue"));
    final Timestamp nextExecution = new Timestamp(executionTime.nextExecution(now).getMillis());
    System.out.println(nextExecution);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jmrozaneccommented, Jul 10, 2016

@tcn @fsi206914 @lpbak @thachhoang Version 4.1.1 was released with this fixes!

0reactions
jmrozaneccommented, Jul 10, 2016

@thachhoang thank you for the fix! That solves the issue, and also provides a solution to issue #54 @tcn @fsi206914 @lpbak issue solved!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upcoming Executions - Death Penalty Information Center
EXECUTION HALTED by Department of Corrections Commissioner John Hamm shortly before midnight (Central Time) on September 22, 2022 when the execution team ...
Read more >
Worst-Case Execution Time - an overview - ScienceDirect.com
Worst-case execution time. The worst-case execution time, C, is the maximum execution time that the RT_Operation requires. It is used in conservative ...
Read more >
Time remaining for the next run - Unix & Linux Stack Exchange
I'd need output as, 19 Hours and 38 Minutes How would I be knowing the total time until next run occurs from current...
Read more >
The Next to Die | The Marshall Project
For five and a half years, The Next to Die tracked every execution scheduled in the United States, starting in 2015.
Read more >
Windows Task Scheduler does not start task at next run time
The trigger says "At 6:50 PM every day - After triggered, repeat every 10 minutes indefinitively." Looking at the Next Run Time, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found