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

Add support for configurable job uniqueness. #265

Merged
merged 3 commits into from
May 26, 2023

Conversation

jpwhite4
Copy link
Member

@jpwhite4 jpwhite4 commented May 8, 2023

This is needed for proper job array support see also pull requests in the xdmod and xdmod-supremm and xdmod-xsede code base.

This is needed for proper job array support see also pull requests
in the xdmod and xdmod-supremm and xdmod-xsede code base.
@jpwhite4 jpwhite4 requested a review from connersaeli May 18, 2023 17:28
@jpwhite4 jpwhite4 added this to the 1.4.2 milestone May 18, 2023
@connersaeli
Copy link
Contributor

@@ -40,6 +40,7 @@
"hostname_mode": "hostname",
"pcp_log_dir": "/data/pcp-logs/my_cluster_name",
"script_dir": "/data/jobscripts/my_cluster_name",
"job_uniq_mode": "local_job_id",
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't there need to be a corresponding update to configure_resource() in supremm_setup.py for this config parameter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Originally I planned for this to be just to support ACCESS XDMoD (this code has been running on the XSEDE/ACCESS version for many years via a custom patch). Have to think about this...........

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Plan is to autodetect the job unique identifier - no need for a configuration setting.

@jpwhite4 jpwhite4 requested a review from connersaeli May 26, 2023 19:06
WHEN jf.`local_job_id_raw` IS NULL THEN IF(jf.`local_job_array_index` = -1, jf.`local_jobid`, CONCAT(jf.`local_jobid`, '_', jf.`local_job_array_index`))
WHEN sj.`source_format` = 'slurm' THEN jf.`local_job_id_raw`
ELSE IF(jf.`local_job_array_index` = -1, jf.`local_jobid`, CONCAT(jf.`local_jobid`, '_', jf.`local_job_array_index`))
END AS job_uniq_id,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does job_uniq_id need to be `job_uniq_id` (with backticks)? Or is that a bit pedantic? Just thinking if it should match the syntax for the other aliases.

WHEN jf.`local_job_id_raw` IS NULL THEN IF(jf.`local_job_array_index` = -1, jf.`local_jobid`, CONCAT(jf.`local_jobid`, '_', jf.`local_job_array_index`))
WHEN sj.`source_format` = 'slurm' THEN jf.`local_job_id_raw`
ELSE IF(jf.`local_job_array_index` = -1, jf.`local_jobid`, CONCAT(jf.`local_jobid`, '_', jf.`local_job_array_index`))
END AS job_uniq_index,
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment here as line 31.

@jpwhite4 jpwhite4 merged commit 615034e into ubccr:master May 26, 2023
@jpwhite4 jpwhite4 deleted the job_uniq branch May 26, 2023 19:53
jpwhite4 added a commit that referenced this pull request Jun 22, 2023
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