Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add port-based lock somehow #6

Open
github-actions bot opened this issue Oct 26, 2022 · 0 comments
Open

Add port-based lock somehow #6

github-actions bot opened this issue Oct 26, 2022 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link

Add port-based lock somehow

So we don't start multiple scheduler instances

# TODO: Add port-based lock somehow

        notification.send()


def loop():
    # TODO: Add port-based lock somehow
    # So we don't start multiple scheduler instances
    print("[green]Scheduler running")
    while True:
        run_pending()


def test():
    scheduled_backup()
    sys.exit()


if __name__ == "__main__":
    test()
else:
    loop()

cc5e46472e977ea128969b4bef6c464e11b17673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant