Bug #11769

crunch-dispatch.rb tries to scancel crunchv2 containers

Added by Peter Amstutz almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
05/30/2017
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
-

Description

When running both crunch-dispatch.rb and crunch-dispatch-slurm, crunch-dispatch.rb will attempt to cancel the container jobs:

2017-05-26_15:42:29.81657 scancel: error: Kill job error on job id 51: Access/permission denied
2017-05-26_15:42:29.81760 
2017-05-26_15:43:30.26123 scancel: error: Kill job error on job id 51: Access/permission denied
2017-05-26_15:43:30.26233 
2017-05-26_15:44:30.28978 scancel: error: Kill job error on job id 51: Access/permission denied
2017-05-26_15:44:30.29090 

This is because it is looking for slurm jobs that match the generic uuid regex and not the job regex specifically:

      squeue_uuids = squeue_jobs.select{|uuid| uuid.match(HasUuid::UUID_REGEX)}.
                                  select{|uuid| !@running.has_key?(uuid)}

Subtasks

Task #11771: Review 11769-scancel-jobs-onlyResolvedNico César

Associated revisions

Revision 8e1efc4c
Added by Peter Amstutz almost 2 years ago

Merge branch '11769-scancel-jobs-only' closes #11769

History

#1 Updated by Peter Amstutz almost 2 years ago

  • Description updated (diff)

#2 Updated by Peter Amstutz almost 2 years ago

  • Status changed from New to In Progress
  • Assigned To set to Peter Amstutz

#3 Updated by Nico César almost 2 years ago

revision at commit:3ef1803

LGTM

#4 Updated by Peter Amstutz almost 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:8e1efc4c74f86a986dd0c6f15f53777d0d2bf0bb.

Also available in: Atom PDF