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

`inv run` should start both flask and celery #96

Open
igor47 opened this issue Jun 21, 2019 · 0 comments

Comments

@igor47
Copy link
Member

commented Jun 21, 2019

currently, most people run the site locally with inv run which starts flask in debug mode. however, if you send emails or do other delayed tasks, those do not happen. you have to separately run inv run.celery-worker to get celery running.

it would be nice if inv run ran both components. alas, there is no good way to use invoke's run function async (see e.g. pyinvoke/invoke#631). in particular, there's no way to terminate those tasks except by sending them a ctrl-c. might be some hackery possible with threads or something....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.