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

Being able to submit jobs without pushing the context around #10

Open
Auha opened this issue Sep 25, 2014 · 3 comments · May be fixed by #27
Open

Being able to submit jobs without pushing the context around #10

Auha opened this issue Sep 25, 2014 · 3 comments · May be fixed by #27

Comments

@Auha
Copy link

Auha commented Sep 25, 2014

So I end up having to create an app context in order to do any jobs. I was wondering if it were possible to automatically include the app context.

I have to do this often

@job
def random():
    with app.app_context():
        x = 1 + 1

I would prefer to not have to type the

with app.app_context():
@phalgun
Copy link

phalgun commented Feb 26, 2015

+1

@zxygentoo
Copy link

+1

Sure, auto create app context (passing config) will be nice.

@joostdevries
Copy link
Collaborator

#27

@joostdevries joostdevries linked a pull request May 12, 2016 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

4 participants