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

Avoid PeriodicCallback double-starts #1573

Merged
merged 2 commits into from
Nov 20, 2017
Merged

Conversation

mrocklin
Copy link
Member

No description provided.

Previously a number of our periodic callbacks were started twice,
resulting in redundant values and odd-looking plots
@@ -506,6 +506,12 @@ def del_scheduler_file():

self.loop.add_callback(self.reevaluate_occupancy)

def start_pcs():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this infrastructure should be in distributed/core.py?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved this to core.py and applied that logic consistently across, scheduler.py, worker.py, and nanny.py

@mrocklin
Copy link
Member Author

Any other thoughts here @pitrou ?

@mrocklin mrocklin merged commit 78dcfd6 into dask:master Nov 20, 2017
@mrocklin mrocklin deleted the pc-starts branch November 20, 2017 16:50
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.

2 participants