Skip to content

Add support for configurable job uniqueness.#265

Merged
jpwhite4 merged 3 commits into
ubccr:masterfrom
jpwhite4:job_uniq
May 26, 2023
Merged

Add support for configurable job uniqueness.#265
jpwhite4 merged 3 commits into
ubccr:masterfrom
jpwhite4:job_uniq

Conversation

@jpwhite4
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Comment thread config/config.json Outdated
"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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Comment thread src/supremm/xdmodaccount.py Outdated
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
Copy Markdown
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.

Comment thread src/supremm/xdmodaccount.py Outdated
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
Copy Markdown
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