Project

General

Profile

Actions

Bug #12088

closed

When executor with a role of delayed executor exits in a non-standard way, new executor would take over the job

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

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

Description

The problem is, when a Dynflow executor exits in non-standard way, a lock that prevents other executors
to take over the delayed execution is not released.

A workaround is to run this in rails console:

coordinator = ForemanTasks.dynflow.world.coordinator
coordinator.find_locks(class: Dynflow::Coordinator::DelayedExecutorLock.name).each { |l| coordinator.release(l) }

and then restart the executor. After doing so, the one should see a flag "delayed_executor"=>true in dynflow console /foreman_tasks/dynflow/worlds at some executor world.

Actions

Also available in: Atom PDF