I have a set of scheduled tasks that are colliding with eachother and need to identify if there is an existing commit running before proceeding.
How can I check the config commit system’s status?
I have a set of scheduled tasks that are colliding with eachother and need to identify if there is an existing commit running before proceeding.
How can I check the config commit system’s status?
How about this? Try to write an identity value like 1 or 0 in a file to indicate the status. Before run another scheduled task check the value in the file.
sudo python3 -c "import sys;sys.path.insert(1, '/usr/lib/python3/dist-packages/vyos/utils/');from commit import *;wait_for_commit_lock()"
works great!
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.