Skip to content

✨ Added the --app-dir param to specify the sources directory #490

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mykolasolodukha
Copy link

What?

  • Add the --app-dir/-d params in CLI to add the directory to add to sys.path before trying to import_module(...).
  • Add the --app-dir/-d to both the Worker and Scheduler.

Why?

  • To support the projects that have a separate sources directory.

How to test?

  • When something lives in ./my_src/my_module.py, it should be imported with --app-dir my_src my_module:my_broker.

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.

1 participant