Project

General

Profile

Actions

Bug #16666

closed

Auto-execute run in db:seed

Added by Ivan Necas about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The auto-execute feature is meant to be run once the permanent
executor is starting to pick up tasks that were queed while no
executor was avaiable. However, we run executor also in db:seed (to
not be dependent on external executor at this phase). This can lead to
auto-execute to be run there as well, with errors like this:

Sequel::UniqueConstraintViolation: PG::Error: ERROR: duplicate key value
violates unique constraint "dynflow_coordinator_records_pkey"
DETAIL: Key (id, class)=(auto-execute,
Dynflow::Coordinator::AutoExecuteLock) already exists.

The solution should be not trying to auto-execute inside rake tasks


Related issues 1 (0 open1 closed)

Related to foreman-tasks - Bug #16668: Dont crash when other executor is auto-executingClosedIvan Necas09/23/2016Actions
Actions

Also available in: Atom PDF