Repository navigation
Replies: 1 comment 3 replies
|
What's an example of a data gathering function that only exists in the dashboard? I'm assuming you're referring to the recently added queue stats. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, the
pg-bosscore package is primarily focused on jobs. Most methods relate to creating and handling jobs, which has kept the API fairly focused.As I’ve added
pg-bossto several projects recently, I’ve found myself wanting more data-gathering functions. The dashboard includes many of these, but they are not part of a public API, and I’d like to avoid bringing all the UI dependencies into my projects.That leads me to the reason for this post: I’d like to propose a dedicated data-gathering package, such as
@pg-boss/statsor@pg-boss/data. This package would be version-locked withpg-bossand updated in sync with the core package. It could either maintain a separate set of plans and queries or operate through a carefully defined interface on apg-bossinstance.This would allow much of the stats logic currently contained in the dashboard to be factored into a package that other consumers could use without pulling in frontend components. It would also keep the core package focused on job handling.
There are many details that would need to be worked out, but I’m curious to get feedback on the concept.
All reactions