Project

General

Profile

Actions

action #57287

closed

Limit assets task fails violating database key constraint

Added by mkittler over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2019-09-24
Due date:
% Done:

0%

Estimated time:

Description

Log from Minion dashboard:

{
  "args" => [],
  "attempts" => 1,
  "children" => [],
  "created" => "2019-09-24T06:37:17.66909Z",
  "delayed" => "2019-09-24T06:37:17.66909Z",
  "finished" => "2019-09-24T06:38:08.36978Z",
  "id" => 261890,
  "notes" => {
    "gru_id" => 27376226,
    "ttl" => 172800
  },
  "parents" => [],
  "priority" => 10,
  "queue" => "default",
  "result" => {
    "error" => "\$VAR1 = bless( {\n                 'msg' => 'OpenQA::Task::Asset::Limit::_limit(): DBI Exception: DBD::Pg::st execute failed: ERROR:  insert or update on table \"assets\" violates foreign key constraint \"assets_fk_last_use_job_id\"\nDETAIL:  Key (last_use_job_id)=(3397396) is not present in table \"jobs\". [for Statement \"UPDATE assets SET last_use_job_id = ? WHERE id = ?\" with ParamValues: 1=\\'3397396\\', 2=\\'791810\\'] at /usr/share/openqa/script/../lib/OpenQA/Task/Asset/Limit.pm line 25\n'\n               }, 'DBIx::Class::Exception' );\n"
  },
  "retried" => undef,
  "retries" => 0,
  "started" => "2019-09-24T06:37:17.69231Z",
  "state" => "failed",
  "task" => "limit_assets",
  "time" => "2019-09-24T10:54:56.24295Z",
  "worker" => 196
}
Actions

Also available in: Atom PDF