-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
UnboundLocalError encounter in _WorkerThread #382
Labels
Comments
Interesting! Do you know what the original error was? |
Hey Bogdanp. Thanks for the fast reply. I do not, unfortunately. However, an exception in |
@Bogdanp any chance of getting this in a release soon? |
@ashleybartlett I just released 1.11. |
Thank you @Bogdanp ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issues
An
UnboundLocalError
can be encountered in_WorkerThread
.Checklist
What OS are you using?
Ubuntu 18.04
What version of Dramatiq are you using?
v1.10.0
What did you do?
Worker thread attempted to process a message.
What did you expect would happen?
Actor to be defined.
What happened?
It's possible for an
UnboundLocalError
to be encountered indramatiq/worker.py
in the_WorkerThread.process_message()
method. The relevant piece of code is:That is, if
actor = self.broker.get_actor(message.actor_name)
does not run,actor
will not be defined below.The text was updated successfully, but these errors were encountered: