Skip to content

Conversation

@mykolasolodukha
Copy link
Contributor

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.

s3rius
s3rius previously approved these changes Oct 23, 2025
@s3rius
Copy link
Member

s3rius commented Oct 23, 2025

Thank for your contribution. Please run pre-commit run -a to fix those errors.

@s3rius
Copy link
Member

s3rius commented Oct 23, 2025

I'll fix it in main.

@s3rius s3rius merged commit 04e3185 into taskiq-python:master Oct 23, 2025
30 of 33 checks passed
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