-
Notifications
You must be signed in to change notification settings - Fork 72
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
Allow me to set the JobId for a JobTicket #752
Comments
Yes, that makes sense. Do you think we should merge jobName (which currently you can set on a batcher calling withJobName(String)) with the concept of jobId (which currently you can get from a JobTicket)? Or is it helpful in the long-run to have both jobName and jobId? |
@sammefford not sure I follow your question. For me personally, I am not using job names right now. |
I envision that a job dashboard might have something like this:
Where the Job ID must be unique for job control purposes (and frankly, doesn't even need to show on the dashboard). And the Job Name can be human readable text for understanding what the job is doing. I guess my question is whether you agree we should have both? |
…id; #648 - Retrieve batcher from a JobTicket
Here are the APIs we added:
These would enable the user to set and retrieve the job id. They should be called like this:
|
Rather than automagically setting the JobId to a UUID, please allow me to manually set it to whatever I like.
Why? you might ask...
My use case is that my "job" consists of 2 parts. I must first run a module to get a list of things to batch on. Then I use the QueryBatcher to do stuff. Both parts of the "job" need to use the jobId but currently I can only get a jobId from the querybatcher after I start it.
I'd like to do something like this:
Hopefully that makes sense.
The text was updated successfully, but these errors were encountered: