Rocketseat / adonis-bull

The easiest way to start using an asynchronous job queue with AdonisJS. Ready for Adonis v5 ⚡️
MIT License
308 stars 57 forks source link

Need to reset statistics from board #36

Closed wemersonrv closed 3 years ago

wemersonrv commented 4 years ago

Good night.

Where are stored the data showed on the job statistics displayed on Bull Dashboard?

Need to clear them here but don't found!

wemersonrv commented 3 years ago

Hello? Is this package died because there are no answers after several months???

fhugoduarte commented 3 years ago

Hey @wemersonrv , forgiveness for the delay :disappointed:

adonis-bull use the bull-board package, it fetches this information from the queue, that is, it will be stored in redis. The bull-board offers the options to clean some jobs.

We're working on a new version compatible with adonis5 and we will update the bull-board.

I hope it was useful.

jpedroschmitz commented 3 years ago

Hey @wemersonrv, on the latest release, that added support for Adonis 5, we have updated the bull-board package to the latest version, where it is now possible to clear all completed/failed jobs or delete specific ones. That's the reason I'm closing this issue, if you have any questions, let me know.

shot

If you want to know more about the new version of Adonis Bull, click here.

wemersonrv commented 3 years ago

Hello,

I'm still on the version 0.2.3 due to compatibility issues on my project, because i don't update it to adonis 5 yet.

Well i'm having an annoying issue when it gets a large amount of jobs list on board (completed, failed, etc)... it gets a lot of memory and is going to use a lot of swap. Last server i've checked it has about 50K completed jobs on list and it costs me a lot of memory, and after clean the jobs; it frees a lot of memory.

So, there is some method that i need to call from my project to empty old messages so i put it in a scheduled job to keep only a list with last month jobs?

wemersonrv commented 3 years ago

Hello, updating... The dashboard is giving me the error ERR_CONNECTION_REFUSED, but just the dashboard has this issue. It works fine and the Jobs are working.

OS: Ubuntu Server 20.04 Nodejs: v12.22.4