-
Notifications
You must be signed in to change notification settings - Fork 79
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
Job exiting before finished #109
Comments
see #108 about |
Thanks for your quick response @shadowgate15 After removing the |
What is the debug log from Bree when you try to run it? |
@shadowgate15 How would I generate a debug log? I saw that you are able to add a logger and manually log some messages but nothing about how to run Bree in debug mode to generate logs. Thanks |
just set the |
Thank you again for taking your time to help me.. I should also add how I add the job in the first place:
The add job function is being used within an express route so that I add new jobs via a REST call. Here is the debug log. I did the following when generating these logs:
|
so a few things to note. under your current setup every time you add a new job it will run all of the jobs again. I would change how do you know the job is exiting before it is finished? It does not look as though bree is returning any errors from the worker. |
@shadowgate15 I know that the job is exiting before it is finished as |
Is the problem coming from within that if statement that would stop |
Hi @shadowgate15 No there is no problem with that if statement...Exact same code works when not being triggered through a job. Also if I remove this following code from the job, then it works fine:
|
hmm... strange. This definitely seems like a potential issue with Node Workers and not Bree. Are you certain that |
Facing the same issue, when the job (worker thread) contains a promise and waits for it to be completed. Worker thread is returning before completion. |
make sure that your promise returns before sending |
Hi I am having a small issue where the job is finishing and exiting before it is finished. Here is the code for my job:
What I see in the console is the following:
If I run the same example in a seperate file then it works without any issues:
What I see in the console is then the following:
Thanks,
Riley
The text was updated successfully, but these errors were encountered: