felixmosh / bull-board

🎯 Queue background jobs inspector
MIT License
2.36k stars 366 forks source link

Feature: Show processedBy on jobs #718

Closed shane-streettext closed 7 months ago

shane-streettext commented 7 months ago

We've been using BullMQ to distribute workloads across multiple servers, and so far have been amending the job data to include a __workerHost: "hostname1" property so we can tell where a job was processed.

Reading through the BullMQ docs today, I noticed that jobs can have a processedBy property that is set when a Worker is instantiated with a name option.

What are your thoughts on adding it to the job card, perhaps under the "Process started at" part of the timeline (see attached screenshot)?

Happy to submit a PR for same if that's something people would find useful.

image

Thanks!

felixmosh commented 7 months ago

Hi, this looks great to me. Can you make a PR for it?

shane-streettext commented 7 months ago

Think it's ready for review! Tested locally with BullMQ v5.7.1 and working as expected.