Project

General

Profile

Actions

Bug #5026

closed

[API] Prohibit leaving jobs in an inconsistent state (e.g., state=queued with non-null log or output)

Added by Ward Vandewege over 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
-
Story points:
1.0

Description

qr1hi-8i9sb-lxlj7ut2ynfk4nj is a run-command job. Workbench has some very weird start/stop information about this job:

created_at: 12:08 PM 1/19/2015
started_at: 12:08 PM 1/19/2015
finished_at: 11:37 AM 12/30/2014

The logs that show for this job are from the run that finished on 12/30/2014.

The crunch-dispatch --jobs logs show that it keeps trying to start the job, but finds it locked and then keeps retrying:

2015-01-20_14:34:52.79332 11901 API method jobs/lock failed: API call /jobs/qr1hi-8i9sb-lxlj7ut2ynfk4nj/lock failed: 403 Forbidden {"errors":["#<ArvadosModel::AlreadyLockedError: ArvadosModel::AlreadyLockedError>"],"error_token":"1421764492+f7dffd85"}. Retrying at 2015-01-20T14:34:56Z.

Actions

Also available in: Atom PDF