Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix synctl and duplicate worker spawning #8798

Merged
merged 3 commits into from
Nov 23, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix style
Oops, forgot to run the python style tools last commit
waylon531 committed Nov 23, 2020

Verified

This commit was signed with the committer’s verified signature.
waylon531 Waylon Cude
commit 855d2d31c49e0c98c3864a7fa8b56e1585000a2a
4 changes: 3 additions & 1 deletion synctl
Original file line number Diff line number Diff line change
@@ -359,7 +359,9 @@ def main():
env = os.environ.copy()

# Skip starting a worker if its already running
if os.path.exists(worker.pidfile) and pid_running(int(open(worker.pidfile).read())):
if os.path.exists(worker.pidfile) and pid_running(
int(open(worker.pidfile).read())
):
print(worker.app + " already running")
continue