Actions
Bug #16666
closedAuto-execute run in db:seed
Difficulty:
Triaged:
Bugzilla link:
Pull request:
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
Actions