-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Cosmetic review of story() #6442
Conversation
The reason why I am opposed to the usage of this is because |
it's not an event; it's something way more granular that happens in the state machine in response to an event. For example, it is true that distributed/distributed/worker.py Lines 1814 to 1835 in ba39915
|
rerun tests Note: rerunning gpuCI tests since those errors should be fixed by #6434 |
Here more details to explain my reasoning. These logs actually inspired the refactoring we're working on right now, at least partially. I took all existing logs we currently have into this table (I skipped the actual transition log) and annotated them with the event I think it should be replaced with that carries identical if not more thorough information. There are a couple I consider redundant by now, I marked with 🔥 and added an explanation to it. I took most names from (#6410) if they don't exist on main, yet.
This basically leaves I don't think we should log any more granular information here. The change is obviously trivial but I would like to have alignment about how this log should be used in the future. Down the road, I hope we'll be having a utility function that matches Events and logs, e.g. by stimulus_id which will likely have a different format than the current story. |
I've salvaged this PR by removing all references to arbitrary tags. |
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 15 files ±0 15 suites ±0 6h 29m 16s ⏱️ - 20m 22s For more details on these failures, see this check. Results for commit 008d9dd. ± Comparison against base commit 344868a. ♻️ This comment has been updated with latest results. |
Please do not merge until after #6566 |
Ready for review and merge again |
Perform cosmetic tweaks to various methods related to worker and scheduler stories.
This PR has been rescoped since it was opened.
Original description - obsolete
There was discussion on #6342 about using Worker.story() on non-key arbitrary tags, e.g. "gather-dep".
I find this functionality invaluable.
Example usage:
distributed/distributed/tests/test_worker.py
Lines 1896 to 1899 in ba39915
This tests that the task was received from worker rw instead of another worker:
distributed/distributed/tests/test_worker.py
Line 1952 in ba39915
This PR doesn't change functionality; it merely clarifies in the documentation that this is a legit use.