Comments (14)
Although Cabin can provide a UI to somehow monitor job execution I think it would be to a great benefit for bree to expose an API to build a custom UI on top of it (sidekiq and resque UIs come to mind)
The main benefit of having a custom UI would be allowing to quickly answer questions around current overall state of jobs in the system, examples are:
- how many jobs are in the queue awaiting execution?
- which jobs are scheduled for future execution?
- which jobs have failed and why?
- allow to retry jobs through an interface
Many more questions come to mind.
Cabin is a logger which is just that - a log of events that already happened. It takes a considerable effort to make sense out of such data.
from bree.
Alright everyone. been working on an api for bree, so checkout the implementation give me feedback. Will work on a TUI, CLI, and GUI soon.
from bree.
Here is a small dashboard I built on top of bree: https://github.com/ionutvmi/bree-dashboard
It's not packaged as a plugin but I am posting it here in case someone else might find it useful.
from bree.
If you shoot me an email [email protected] I will notify you, or you can go to https://github.com/cabinjs/cabin and click on subscribe:
from bree.
Since we recommend using Cabin, and Cabin will soon have a dashboard (with free plans), you could use the Cabin dashboard to monitor your jobs. It will all be open-source, and this would not only be a helpful real-time dashboard for jobs/bree, but also your entire app in general.
I will comment here again when it is released publicly (the dashboard/website that is).
from bree.
@niftylettuce Where is can watch any updates about Cabin Dashboard?
Official site cabinjs.com has no mention about it yet.
from bree.
Do you guys have any updates about this? I feel like a nice ui to monitor jobs and maybe change some scheduling rules at runtime would be perfect.
from bree.
No updates. However, I have been thinking on this.
One of the core pieces of bree
is that it is designed to be a job scheduler not a manger. Hence, why it does not use a database layer like agenda
, bull
, etc...
In order to build a ui/api that would persist changes at runtime across server shutdown, we would need to drop this agnostic approach. Perhaps it makes sense to provide the ui/api like agenda
does with agendash
and agenda-rest
. This would then allow us to add specific supports for persistence.
Or does persistence even matter?
Thoughts are welcome.
from bree.
Here are my 2 cents.
Hope it helps you guys.
On my project, I was thinking on running a simple express server in parallel that serves the state of the bree object in memory in an endpoint.
The UI could just render that and shows the current state.
Also, this express server could accept websocket connections to listen to all events generated by the bree object and the UI could show the current behavior of the scheduler.
My point is, I really like how simple and elegant Bree is. I does really well what it does. No unnecessary features. I recommend keeping it that way. No separate state management.
Btw, my jobs need to connect to my backend and I manage their state myself. Even if my bree instance goes down, I can just restart it and the jobs will pick it up from where they left off.
from bree.
@mpmartins the backend handling the state of the job is the way Bree is designed and is how it remains state management agnostic.
This is also how I for see a dashboard being created for Bree. Which to me seems as though it would be better for the user to generate instead of the Bree team providing one, even as a separate optional package.
Bree provides complete access to the module all the user needs to do is attach it in a way that the instance of Bree is accessible within the context.
One thing that might be beneficial is to provide some getter/setter helpers for things such as filtering jobs, getting active workers, etc.
from bree.
The API doesn't seem to be available in the npm store as its documentation suggests. Is it still supported ?
from bree.
So sorry about that v1 is now pushed. Let us know of any issues or feature requests over there! And PR are always welcome!
from bree.
This is impressive @ionutvmi - can you email me at [email protected]?
from bree.
@ionutvmi clean dashboard :D
from bree.
Related Issues (20)
- [feat] function to list all runnning jobs HOT 1
- [fix] Error [ERR_UNSUPPORTED_ESM_URL_SCHEME] HOT 3
- [fix] Cron last day of the month incorrect behaviour
- [fix] script works in main thread but fails in worker thread with FATAL ERROR or silent crash HOT 2
- Bree applied to data ingest HOT 1
- [fix] Missing await on 'start' function.
- [feat] Please Allow us to see what jobs are in the Que
- [fix] Types aren't making timeout and interval optional HOT 2
- cron job starts after timeout not after definition HOT 2
- [fix] Bree not working with Later HOT 1
- Bree Workers Won't Follow closeWorkerAfterMs rule
- Using, name + path + cron starts job on start HOT 1
- [fix] cannot extends types HOT 5
- Bree Job not able to resolve the dependencies
- TypeError: Bree is not a constructor HOT 3
- Job sometimes reports as "already running" when it isn't, and then runs anyway
- [fix] Bree doesn't gracefully exit HOT 4
- [feat] Need to be able to remove job after # of runs HOT 5
- [fix] Job using class function throws syntax error when run HOT 1
- [fix] Attempting to access worker data within a function job throws `worker_threads_1 is not defined`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bree.