Skip to content

SyncProducer: Prevent from starting another periodic task (fixes #582) #600

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

acolomb
Copy link
Member

@acolomb acolomb commented Jul 15, 2025

Raise a RuntimeError when a SYNC transmission task has previously been
started. Make sure to clear the internal _task attribute when
stopping, to make the check work.

acolomb added 2 commits July 15, 2025 09:15
Raise a RuntimeError when a SYNC transmission task has previously been
started.  Make sure to clear the internal _task attribute when
stopping, to make the check work.
@acolomb acolomb linked an issue Jul 15, 2025 that may be closed by this pull request
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@acolomb acolomb marked this pull request as ready for review July 15, 2025 07:23
@acolomb
Copy link
Member Author

acolomb commented Jul 15, 2025

I squeezed some more fixes in, regarding type hints and possible exceptions (now listed in the docstrings).

@acolomb acolomb changed the title sync: Prevent from starting periodic task when already running (fixes #582) SyncProducer: Prevent from starting another periodic task (fixes #582) Jul 15, 2025
@acolomb acolomb added this to the v3.0.0 milestone Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reference to task is lost when starting a second Sync periodic
1 participant