faktory_worker icon indicating copy to clipboard operation
faktory_worker copied to clipboard

Add possibility to customise worker process `labels` and `Name` (wid)

Open duksis opened this issue 2 years ago • 2 comments
trafficstars

First of all thanks for the great library - your work is highly appreciated! 🙏

With this issue I would like to suggest an enhancement - ability to customize the worker labels and name or (wid).

Background: I have a project with multiple worker applications connecting to the Faktory server and performing work. Currently I'm having trouble identify which process belongs to which application/deployment when using the UI because wid is not descriptive and the single label of elixir-1.x.x is in most case not helpful either. currently these values do not seem to be configurable https://github.com/opt-elixir/faktory_worker/blob/e322cd644cde2baa867465d9093f16bca1f60352/lib/faktory_worker/connection.ex#L128

Screenshot 2023-08-24 at 17 52 03

duksis avatar Aug 24 '23 16:08 duksis

I'm open to a PR on this.

Ch4s3 avatar Sep 15 '23 16:09 Ch4s3

@Ch4s3 #207 adds the possibility to configure labels, name can be set indirectly by changing the hostname of the instance that is running the worker.

duksis avatar May 25 '24 15:05 duksis