[V5] Bull sandbox processes fails #1699
Unanswered
akraminakib
asked this question in
Help
Replies: 1 comment
-
Yes it is has to do with the IoC container since the bull process is not booting the AdonisJS app and hence the IoC container is not ready to resolve any dependencies. I am not sure how bull process works, but you will have to boot the application if you want your job processes to rely on the application/IoC container imports |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm trying a simple implementation of sandboxed processes in bull on Adonis V5 and keep getting an error. I've listed below the contents of the relevant files, and everything else is the default from what
adonis-ts-app
creates/start/routes.ts
/app/Controllers/Http/UsersController.ts
/app/Jobs/ProcessUser.ts
Now here is the actual error message that's being outputted on the terminal:
Removing the import and use of the
Logger
fromProcessUser.ts
and instead usingconsole.log
works however, so I'm inclined to think it's maybe the way the ioc is resolving the imports? Any help will be greatly appreciated!Beta Was this translation helpful? Give feedback.
All reactions