-
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
[feat] modify jobs function #169
Comments
Use |
is it deprecated? couldn't find a single mention in the documentation |
Use case: managing jobs in Electron using RxDB (store is IndexedDB). RxDB uses RxJS to make data observable/reactive. So my flow should be: get list of jobs from DB -> start bree -> user updates job in UI -> RxDB query saves update + list of jobs automatically updates since it is reactive -> subscribe to that and on update sync bree In theory I guess its the same with any data store. User updates job after bree is started -> persist update -> need to update it in bree as well What is the current workaround and what are the downsides of it? I guess it must be something like, ? bree.stop('beep');
(async () => {
await bree.add('beep2');
})();
(async () => {
await bree.start('beep2');
})(); I hope I can name beep2 beep and overwrite the existing job since there does not seem to be a way to remove jobs from a started bree, despite there being a way to add more. In an ideal world maybe a |
What problem are you trying to solve?
Would be good to provide a
bree.modify
function to modify an existing job and rerun validation on the job.The text was updated successfully, but these errors were encountered: