Skip to content
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

Invalid queue_name with dot #111

1 task
Qu4tro opened this issue Sep 26, 2018 · 0 comments
1 task

Invalid queue_name with dot #111

Qu4tro opened this issue Sep 26, 2018 · 0 comments


Copy link

Qu4tro commented Sep 26, 2018


  • [✓] Does your title concisely summarize the problem?
  • [✓] Did you include a minimal, reproducible example?
  • What OS are you using?
  • [✓] What version of Dramatiq are you using?
  • [✓] What did you do?
  • [✓] What did you expect would happen?
  • [✓] What happened?

What version of Dramatiq are you using?


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

import dramatiq
import requests
import sys'a.fifo')
def count_words(url):
    response = requests.get(url)
    count = len(response.text.split(" "))
    print(f"There are {count} words at {url!r}.")

if __name__ == "__main__":

I've looked and found the culprit here (A regex expression to check the queue name):

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants