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

Add more options to django command wrapper #20

Closed
wants to merge 1 commit into from
Closed

Add more options to django command wrapper #20

wants to merge 1 commit into from

Conversation

MattBlack85
Copy link
Contributor

@MattBlack85 MattBlack85 commented Aug 29, 2018

This PR is intended to make the django command wrapper more similar to the original one allowing to pass more arguments:

  • --queues
  • --log-file,
  • --pid-file

"--threads", str(threads)
]

if queues:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag should be appended at the very end of the argument list, otherwise it's ambiguous in conjunction with the MODULE_NAME positional arg:

dramatiq --threads 8 --proceses 8 --queues a b c d module_a module_b

has a different meaning from

dramatiq --threads 8 --proceses 8 module_a module_b --queues a b c d

Copy link
Owner

@Bogdanp Bogdanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll merge this when I get back from vacation (in 2 and 1/2 weeks).

@MattBlack85
Copy link
Contributor Author

gotcha 👌 I made the requested changes! no rush and relax 🌴

@MattBlack85 MattBlack85 changed the title Allow to define queues when running django command Add more options to django command wrapper Aug 29, 2018
@Bogdanp
Copy link
Owner

Bogdanp commented Sep 22, 2018

Thanks again! This is merged in 9ce6107

@Bogdanp Bogdanp closed this Sep 22, 2018
@MattBlack85 MattBlack85 deleted the allow_queues branch March 21, 2019 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants