Skip to content

Commit

Permalink
Refs #34394 - trigger dynflow restart when DB restarts
Browse files Browse the repository at this point in the history
When PostgreSQL is restarted (or worse, unavailable for a while),
Dynflow doesn't always cope well with this fact and sometimes ends in a
bad state, not able to recover itself.

This is clearly not fixing the underlying Dynflow issue, but at least
lets restart Dynflow in the cases we *know* the DB dropped connections.
  • Loading branch information
evgeni committed Feb 10, 2022
1 parent 9905a3b commit a2924b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/dynflow/worker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
enable => true,
subscribe => Class['foreman::database'],
}

Anchor <| title == 'postgresql::server::service::end' |> ~> Service[$service]
} else {
service { $service:
ensure => stopped,
Expand Down

0 comments on commit a2924b6

Please sign in to comment.