-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job name is taked from inside job data #241
Comments
This behaviour is intentional, and was added in #74. Do you have a better suggestion that covers this use case? |
The behaviour is not documented, so now I have all funky names in the list, rather than just using the Bull name. This prevents people to use the Bull has a job name already, why do you need to fetch it from the job? |
Well, I believe this dates back to the time that bull didn't have a job Perhaps, a more appropriate change would be to give priority to using So, try to replace this:
with this:
Disclaimer: I haven't tested the above code change, it's just a suggestion that may make the required change more backwards compatible. |
So, I just checked this issue and PR. I have two comments:
As Arena is supposed to also work without Bull, and Bull of course without Arena, my suggestion is:
What do you think @kikar? |
That's a great solution! |
Well, both the README and the CHANGELOG are files inside this repo, so, you could just edit them in the same PR, or perhaps ask one of the project maintainers - I'm not one of them, just an opinionated dev :-). I'd add something like this: README.md Add a new section, after the Custom configuration file section.
CHANGELOG.md Add a new top section (above 3.2.2) for unreleased changes.
|
I'd advise against updating the CHANGELOG file, as it's automatically generated/updated by our release tooling. Based on conventionalcommits, you can add information to commits that'll be included in the changelog. Perhaps another solution here, because there don't seem to be any standards around the naming of jobs in either queue library (certainly not in bee-queue, anyway), would be to allow the library user to provide a function that determines what the job's name should be given the job object itself? |
Hi, I have a queue where the data contains a name property, and that name is used in the job list instead of the job name.
Is there a reason for this?
You can see it happening here
The text was updated successfully, but these errors were encountered: