Giter Club home page Giter Club logo

Comments (14)

naz avatar naz commented on May 17, 2024 7

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.

shadowgate15 avatar shadowgate15 commented on May 17, 2024 4

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.

mihai-vlc avatar mihai-vlc commented on May 17, 2024 3

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.

niftylettuce avatar niftylettuce commented on May 17, 2024 2

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:

Screen Shot 2020-09-15 at 3 50 02 AM

from bree.

niftylettuce avatar niftylettuce commented on May 17, 2024 1

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.

https://cabinjs.com

I will comment here again when it is released publicly (the dashboard/website that is).

from bree.

alexander-mart avatar alexander-mart commented on May 17, 2024

@niftylettuce Where is can watch any updates about Cabin Dashboard?
Official site cabinjs.com has no mention about it yet.

from bree.

mpmartins avatar mpmartins commented on May 17, 2024

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.

shadowgate15 avatar shadowgate15 commented on May 17, 2024

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.

@niftylettuce @naz

from bree.

mpmartins avatar mpmartins commented on May 17, 2024

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.

shadowgate15 avatar shadowgate15 commented on May 17, 2024

@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.

nikosgpet avatar nikosgpet commented on May 17, 2024

The API doesn't seem to be available in the npm store as its documentation suggests. Is it still supported ?

from bree.

shadowgate15 avatar shadowgate15 commented on May 17, 2024

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.

niftylettuce avatar niftylettuce commented on May 17, 2024

This is impressive @ionutvmi - can you email me at [email protected]?

from bree.

mgara avatar mgara commented on May 17, 2024

@ionutvmi clean dashboard :D

from bree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.