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

Fix next execution time on non-scheduled cluster member #1280

Merged
merged 1 commit into from
Jul 2, 2015

Conversation

noahhl
Copy link
Contributor

@noahhl noahhl commented Jun 9, 2015

In a clustered rundeck installation, the cluster member that isn't the assigned node for a job will display "never" for the next scheduled execution time.

This turns out to be because trigger.getNextFireTime() returns null if the trigger hasn't been added to a schedule (or more precisely, if the start time hasn't been set yet). Using trigger.getFireTimeAfter(new Date()) will properly calculate the next execution.

trigger.getNextFireTime() returns null if the trigger hasn't been added to a schedule (or more
precisely, if the start time hasn't been set yet). This meant that in a clustered rundeck installation,
the non-scheduled cluster member would show jobs as being scheduled "never". Using trigger.getFireTimeAfter()
will properly calculate the next execution
@gschueler
Copy link
Member

thanks!

gschueler added a commit that referenced this pull request Jul 2, 2015
Fix next execution time on non-scheduled cluster member
@gschueler gschueler merged commit 4cb8f4c into rundeck:development Jul 2, 2015
@gschueler gschueler added the bug label Jul 2, 2015
@gschueler gschueler added this to the 2.5.2 milestone Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants