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

Context Worker #49

Closed
genfild opened this issue Dec 13, 2022 · 0 comments
Closed

Context Worker #49

genfild opened this issue Dec 13, 2022 · 0 comments

Comments

@genfild
Copy link

genfild commented Dec 13, 2022

The example uses context change, which doesn't work.

async def startup(ctx):
    ctx["db"] = await create_db()

The following code works
ctx['worker'].context["db"] = await create_db()

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

1 participant