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

Litestar DI #36

Open
Forceres opened this issue Jul 29, 2024 · 2 comments
Open

Litestar DI #36

Forceres opened this issue Jul 29, 2024 · 2 comments

Comments

@Forceres
Copy link

Is it possible to use Litestar DI at job functions like:

    def job(product_service: ProductService):
           pass

?

@Forceres
Copy link
Author

Thinking, it is possible via worker context via self.context, but plugin implementation does not permit such things

@cofin
Copy link
Owner

cofin commented Jul 31, 2024

It's not currently possible; this would be an awesome addition though.

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

2 participants