Invalid queue_name with dot #111
Closed
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
What version of Dramatiq are you using?
1.3.0
What did you do?
Used the
queue_name
param in actor.What did you expect would happen?
It would run without exceptions
What happened?
ValueError: Queue names must start with a letter or an underscore followed by any number of letters, digits, dashes or underscores.
Example code
I've looked and found the culprit here (A regex expression to check the queue name):
https://github.com/Bogdanp/dramatiq/blob/master/dramatiq/actor.py#L26
Is there a reason on why it doesn't allow dots? Dots are needed when using fifo queues on AWS SQS. This error message appears otherwise:
Your queue name "a" contains invalid characters. A FIFO queue name must end with the .fifo suffix.
Could the solution be just changing the regex or is there a reason why dots are not permitted?
The text was updated successfully, but these errors were encountered: