The bull extension automatically installs the advanced logger as well in case you did not install that one, yet. Logging is configured via ENV variables as well. If you just want pretty console logging add this to your ENV:
PRETTY_LOG=enabled
LOG_LEVEL=debug
You can find more options here:
The Bull extension has logging integrated, so you will see logs immediately as soon as you run some jobs or create queues.
That’s my question though. If leveraging the default wappler redis config what should the settings be for things REDIS_PORT, REDIS_HOST, REDIS_USER, etc. Which are required?
Btw quick reminder here: If you use queues in sandboxed threads then every new job will create a new DB connection. They get automatically destroyed when the job is done. But if you run a lot of concurrent jobs in sandboxed threads and use Postgres then make sure to put pgbouncer in front of it so that you don’t run out of connections. That way you can easily handle thousands of concurrent jobs if your server has the power.
I have a couple of questions and I will be grateful if you share your thoughts about it.
What do you suggest as the best practice for catching the end of the processing all the job? (for triggering another server action)
For now I just mark the last job with a special parameter. It works, but obviously is not error-prone.
Is it worth it to tick the “Remove on complete” on Job Start?
Currently I have it in default state (empty).
Does this mean that all completed Jobs will be stocking in Redis and in some time can slow it down?