Skip to content

Commit

Permalink
datamodel: policy-loader: added sleep after loading the config
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmrazek committed Feb 3, 2025
1 parent db1fe2a commit 09496a7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ cache.open({{ cfg.cache.size_max.bytes() }}, 'lmdb://{{ cfg.cache.storage }}')
{% set disable_defer = true %}
{% include "defer.lua.j2" %}


{% endif %}

-- This sleep() is necessary because of the possible
-- termination of the policy-loader before it is
-- added into starting_processes in sd_notify.py.
-- If this happens, the READY notification will end with an error.
worker.sleep(1)

-- exit policy-loader properly
quit()

0 comments on commit 09496a7

Please sign in to comment.