Skip to content

ensure run once tasks don't get launched at startup#903

Merged
tpetr merged 2 commits intomasterfrom
dont-autostart-run-once
Feb 23, 2016
Merged

ensure run once tasks don't get launched at startup#903
tpetr merged 2 commits intomasterfrom
dont-autostart-run-once

Conversation

@tpetr
Copy link
Copy Markdown
Contributor

@tpetr tpetr commented Feb 17, 2016

  • Update SingularityStartup logic to ignore both ON_DEMAND and RUN_ONCE requests.
  • Add unit test to assert that RUN_ONCE requests aren't launched at startup

@JsonIgnore
public boolean isOneOff() {
return requestType == RequestType.ON_DEMAND;
return requestType == RequestType.ON_DEMAND || requestType == RequestType.RUN_ONCE;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wsorenson do you agree with this approach, or would you rather I update the check in SingularityStartup?

@tpetr tpetr added this to the 0.4.10 milestone Feb 17, 2016
@tpetr tpetr modified the milestones: 0.4.10, 0.4.11 Feb 18, 2016
@ssalinas ssalinas modified the milestones: 0.4.11, 0.4.12 Feb 23, 2016
tpetr pushed a commit that referenced this pull request Feb 23, 2016
ensure run once tasks don't get launched at startup
@tpetr tpetr merged commit a9d74b8 into master Feb 23, 2016
@tpetr tpetr removed hs_qa labels Feb 23, 2016
@ssalinas ssalinas deleted the dont-autostart-run-once branch April 5, 2016 15:35
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.

2 participants