Closed theahmadzai closed 2 years ago
if this is empty it throws error and if not then it does not can we please! allow it to not throw error when empty because jobs might be added later after loading
This is expected behavior. It has checked for an index file in JOB_ROOT and found none. However bree has initialized and is running. Perhaps we should provide a better Error message here and an option to either not do this or silence this error.
Describe the bug
Bree throws an error if the jobs array when creating object is empty so in my case I load all my jobs config from database and initially the jobs array is empty I add jobs after loading them from database.
Actual behavior
...
Expected behavior
It should not throw error on creating bree object with empty jobs because jobs might be added later via bree.add ...
Code to reproduce
This is the code I use to load jobs and add it to bree
Checklist