-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
feat: update actor_name assignment in decorator #641
Conversation
This isn't the right approach, since it would be a breaking change to any currently-deployed code. I would prefer it if we checked for duplicate actor names and raised an error instead. |
Indeed, I think checking for duplicate actor_name is necessary. But at the same time, it is reasonable to change the default value. We should support functions decorated with the same function name by default, right? This should also be a design mistake. |
I think it's more nuanced than a plain design mistake. At least, I remember thinking about this quite a bit when I made the original decision to use |
Will anyone who in the production environment keep the queue unemptied and update dramatiq? I don't think so, but there is no evidence. I will keep this PR until I open another PR to add the exception you mentioned. Delay for a few days . |
Revert "Update actor.py" This reverts commit 3e8ac4a. feat: raise duplicated actoe_name
@Bogdanp fixed |
fixed |
Thanks! |
Close #640