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

PBS job name: length maximum global.rc configurable #1804

Merged
merged 2 commits into from
May 12, 2016

Conversation

matthewrmshin
Copy link
Contributor

@matthewrmshin matthewrmshin commented Apr 20, 2016

Plus document on how to modify a constant to bring back truncate support.

Simplest way to close #1803, but is this approach acceptable to sites stuck with an old version of PBS? If not, I'll add a global configuration for this instead.

Default is now the same as before, truncate at 15 characters. The length is now global.rc configurable.

@matthewrmshin matthewrmshin self-assigned this Apr 20, 2016
@matthewrmshin matthewrmshin added this to the soon milestone Apr 20, 2016
@matthewrmshin matthewrmshin force-pushed the pbs-job-name branch 4 times, most recently from d05e42d to f19be63 Compare April 22, 2016 11:02
@matthewrmshin matthewrmshin force-pushed the pbs-job-name branch 3 times, most recently from 75b7a63 to be9e876 Compare May 4, 2016 11:37
@matthewrmshin matthewrmshin modified the milestones: next release, soon May 4, 2016
@matthewrmshin matthewrmshin changed the title PBS job: don't truncate job name by default PBS job name: length maximum global.rc configurable May 4, 2016
@matthewrmshin
Copy link
Contributor Author

@benfitzpatrick @arjclark please review.

PBS fails a job submit if the job name in \lstinline=-N name= is too long.
For version 12 or below, this is 15 characters. For version 13, this is 236
characters. You should modify the constant \lstinline=JOB_NAME_LEN_MAX= in the
\lstinline=PBSHandler= class in \lstinline=lib/cylc/batch_sys_handlers/pbs.py=
Copy link
Contributor

Choose a reason for hiding this comment

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

Still true?

Copy link
Contributor

Choose a reason for hiding this comment

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

What, that you have to change it or that PBS just breaks at earlier versions?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this advice needs nixing completely.

@matthewrmshin
Copy link
Contributor Author

Docs fixed.

@benfitzpatrick
Copy link
Contributor

Looks good to me.

@matthewrmshin
Copy link
Contributor Author

@arjclark please review 2.

@arjclark
Copy link
Contributor

Looks OK to me. No problems from the test-battery in my environment.

@arjclark arjclark merged commit 2603da7 into cylc:master May 12, 2016
@matthewrmshin matthewrmshin deleted the pbs-job-name branch May 12, 2016 10:17
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.

pbs 13+: job names can now have >15 characters
3 participants