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

Prevent early dataset state changes in the ShellJobRunner #4343

Merged
merged 2 commits into from Jul 28, 2017

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jul 25, 2017

This prevents a (rare) problem when running a workflow, where a downstream job
requires tool metadata from the previous job. Calling
job_wrapper.state_change() too early will cause the next job to run,
which will fail due to missing metadata. Note that other job runners do
not explicitly call job_wrapper.change_state() when the state is OK.

This prevents a (rare) problem when running a workflow, where a "step 2"
requires tool metadata from the output of "step 1". Calling
`job_wrapper.state_change()` too early will cause the next job to run,
which will fail due to missing metadata. Note that other job runners do
not explicitly call `job_wrapper.change_state()` when the state is OK.
@mvdbeek mvdbeek added this to the 17.09 milestone Jul 25, 2017
@jmchilton jmchilton merged commit e1c54f3 into galaxyproject:dev Jul 28, 2017
@jmchilton
Copy link
Member

Makes good sense - thanks for the fix @mvdbeek !

@mvdbeek mvdbeek deleted the clirunner_fix_metadata branch June 12, 2018 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants