-
-
Notifications
You must be signed in to change notification settings - Fork 723
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
Worker has no exceptions attribute anymore #5225
Comments
The exception in question can be found in |
Indeed the alternative is now I'll update the referenced doc strings accordingly What might interest you as well is that we're currently investigating to capture all server-side exceptions and log them as an event, e.g. to be forwarded to a client. see #5184 for a discussion about the exception capturing and #5217 for the event subscription on client side With this you might no longer need to scrape worker plugins but could do this on the scheduler or client instead. nothing wrong with the worker plugin in general, though. |
For reference, the TaskState attributes are documented here distributed/distributed/worker.py Lines 102 to 146 in 5467f9c
I would consider the documented attributes as mostly stable. Peaking over the attributes I don't expect any of them to change (neither type nor semantics) with two exceptions triggered by #5046 suspicious_count might be removed (TBD) and the set of possible task states might change as well over there. If in doubt, don't hesitate to open a ticket. There is a continuous, ongoing effort to improve our communication in terms of what is considered public and what isn't but this is hard considering the vast "API surface". feedback is always appreciated in that regard, though
|
What happened:
We have a worker plugin which forwards exceptions to sentry. This broke silently (because exceptions is worker appear to be swallowed) because the worker does not have an
exceptions
attribute anymore.What you expected to happen:
exceptions
attribute is present as it was in past revisions and as in the example: https://github.com/dask/distributed/blob/main/distributed/diagnostics/plugin.py#L114-L127Minimal Complete Verifiable Example:
Since
asserts
appear to be swallowed, the control flow is shown viaprint
Output with dask/distributed 2.30.0 - the test correctly prints
Fine: foo
Output with dask/distributed
2021.7.0
printsBoom: 'Worker' object has no attribute 'exceptions'
because the worker has no exception attribute anymore (ignore the noise at the end)Anything else we need to know?:
If you are using pytest to run the example, run it with
-s
option to see theprints
on stdoutEnvironment:
The text was updated successfully, but these errors were encountered: