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

rundramatiq finds too many tasks modules #33

Closed
ghost opened this issue Mar 27, 2019 · 5 comments
Closed

rundramatiq finds too many tasks modules #33

ghost opened this issue Mar 27, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2019

I'm looking to replace Celery with something better and I've tried both Huey and now Dramatiq, but they both suffer from the same issue, which is that they find "too many" tasks modules which I don't want to use.

My project depends on django_slack which has a tasks module which is intended for use with Celery. The module tries to import celery and this results in an ImportError.

This is my comment on the Huey project: coleifer/huey#362 (comment)

@Bogdanp
Copy link
Owner

Bogdanp commented Mar 27, 2019

You can work around this by creating a command in your project that subclasses the rundramatiq command and replacing discover_tasks_modules with an implementation that suits your project.

@Bogdanp
Copy link
Owner

Bogdanp commented Mar 27, 2019

Either that or run dramatiq yourself, without the dramatiq command.

@Bogdanp Bogdanp closed this as completed Mar 27, 2019
@denizdogan
Copy link
Contributor

@Bogdanp Would you be open to a PR which adds an optional DRAMATIQ_IGNORED_MODULES setting?

@Bogdanp
Copy link
Owner

Bogdanp commented Mar 27, 2019

@denizdogan sure!

@Bogdanp
Copy link
Owner

Bogdanp commented Mar 28, 2019

The new DRAMATIQ_IGNORED_MODULES setting has been released under version 0.7.0.

@Bogdanp Bogdanp closed this as completed Mar 28, 2019
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

No branches or pull requests

2 participants