Skip to content
Snippets Groups Projects
Commit 3a97fd10 authored by Morris Jette's avatar Morris Jette
Browse files

Fix salloc job id format

Was using "%d" rather than "%u" to print job ID. printing negative
job id value for inter-cluster jobs.
parent ab57a2af
No related branches found
No related tags found
No related merge requests found
...@@ -494,10 +494,10 @@ relinquish: ...@@ -494,10 +494,10 @@ relinquish:
if (allocation_state != REVOKED) { if (allocation_state != REVOKED) {
pthread_mutex_unlock(&allocation_state_lock); pthread_mutex_unlock(&allocation_state_lock);
info("Relinquishing job allocation %d", alloc->job_id); info("Relinquishing job allocation %u", alloc->job_id);
if ((slurm_complete_job(alloc->job_id, status) != 0) && if ((slurm_complete_job(alloc->job_id, status) != 0) &&
(slurm_get_errno() != ESLURM_ALREADY_DONE)) (slurm_get_errno() != ESLURM_ALREADY_DONE))
error("Unable to clean up job allocation %d: %m", error("Unable to clean up job allocation %u: %m",
alloc->job_id); alloc->job_id);
pthread_mutex_lock(&allocation_state_lock); pthread_mutex_lock(&allocation_state_lock);
allocation_state = REVOKED; allocation_state = REVOKED;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment