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 job polling for SGE #2462

Merged
merged 3 commits into from
Oct 31, 2017
Merged

Conversation

RosalynHatcher
Copy link
Contributor

Closes #2439

The default qstat <jobid> is no longer valid syntax for SGE. There is no option to query a specific job id and return tabular output which cylc is currently relying on.

Add get_poll_many_cmd method to sge handler. This will use qstat with no arguments to list the user's jobs in the required format and then the code already in batch_sys_manager._jobs_poll_batch_sys() will check that any of the submitted or running jobs is the one requested.

@matthewrmshin matthewrmshin added this to the next release milestone Oct 27, 2017
@matthewrmshin
Copy link
Contributor

(Failing codacy - line 66 has trailing white space.)

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

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

Looks good as far as I can tell - as I can't test SGE here! Thanks @RosalynHatcher - if you could just fix the trivial whitespace error before we merge this...

@RosalynHatcher
Copy link
Contributor Author

@hjoliver, @matthewrmshin - whitespace error fixed.

@matthewrmshin
Copy link
Contributor

Latest Travis CI failure unrelated. (It is because pep8 is renamed pycodestyle on Travis CI. See metomi/rose#2128.)

@hjoliver
Copy link
Member

@matthewrmshin - any reason not to merge this now, given the new errors are verified as unrelated to this branch?

@matthewrmshin matthewrmshin merged commit da6151f into cylc:master Oct 31, 2017
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