refactor: start queue in all environments except the console environment and during start phase#6
Open
thetutlage wants to merge 1 commit into0.xfrom
Open
refactor: start queue in all environments except the console environment and during start phase#6thetutlage wants to merge 1 commit into0.xfrom
thetutlage wants to merge 1 commit into0.xfrom
Conversation
…ent and during start phase BREAKING CHANGE: Any custom console commands relying on jobs to be registered with the queue manager will not work. They will have to resolve the queue.manager from the container and explicitly invoke the start method
|
I got this error when running node ace queue:scheduler:list
ℹ Exception: QueueManager is not initialized. Call QueueManager.init() before using it.
⁃ at QueueManagerSingleton.use (/Users/apple/Sandbox/adonisjs-queue/node_modules/@boringnode/queue/src/queue_manager.ts:187:13)
⁃ at _Schedule.list (/Users/apple/Sandbox/adonisjs-queue/node_modules/@boringnode/queue/src/schedule.ts:109:34)
⁃ at QueueSchedulerList.run (/Users/apple/Sandbox/adonisjs-queue/build/commands/queue_scheduler_list.js:28:42)
23 ┃ const { Schedule } = await import('@boringnode/queue');
24 ┃ const options = {};
25 ┃ if (this.status === 'active' || this.status === 'paused') {
26 ┃ options.status = this.status;
27 ┃ }
❯ 28 ┃ const schedules = await Schedule.list(options);
29 ┃ if (schedules.length === 0) {
30 ┃ this.logger.info('No schedules found');
31 ┃ return;
32 ┃ }
33 ┃ const table = this.ui.table();
⁃ at async QueueSchedulerList.exec (/Users/apple/Sandbox/adonisjs-queue/node_modules/@adonisjs/core/build/main-DzNXtXg3.js:66:19)
⁃ at async #execMain (node_modules/@adonisjs/ace/build/index.js:2184:4)
⁃ at async AceProcess.handle (node_modules/@adonisjs/core/build/main-zFY2qkGC.js:89:3)I'm using npm link |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: Any custom console commands relying on jobs to be registered with the queue manager will not work. They will have to resolve the queue.manager from the container and explicitly invoke the start method.
Closes: #5