Skip to content

Do not retry ON_DEMAND tasks which were killed by user request. - #2059

Merged
ssalinas merged 5 commits into
masterfrom
do-not-retry-killed-ON_DEMANDs
Jan 28, 2020
Merged

Do not retry ON_DEMAND tasks which were killed by user request.#2059
ssalinas merged 5 commits into
masterfrom
do-not-retry-killed-ON_DEMANDs

Conversation

@baconmania

Copy link
Copy Markdown
Contributor

No description provided.

return false; // don't retry one-off launches of on-demand jobs if they were killed by the user
}

if (task.get().getTaskRequest().getPendingTask().getPendingTaskId().getPendingType() == PendingType.IMMEDIATE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small nit, can we do this check first for efficiency since it doesn't require the task history lookup?

@baconmania

Copy link
Copy Markdown
Contributor Author

Tested live successfully.

@ssalinas

Copy link
Copy Markdown
Contributor

🚢

@WH77 WH77 added the hs_stable label Jan 24, 2020
@ssalinas
ssalinas merged commit d88aa81 into master Jan 28, 2020
@ssalinas
ssalinas deleted the do-not-retry-killed-ON_DEMANDs branch January 28, 2020 02:02
@ssalinas ssalinas added this to the 1.2.0 milestone Jan 28, 2020
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.

3 participants