k2v-academy / K2View-Academy

Other
0 stars 0 forks source link

Can I retrieve job 'name' and 'uid' from a broadway flow that is triggered as a BROADWAY_JOB? #1007

Closed pWIqmFHmGnqqlIyFDwZIlw1JWRHoo8AgicH1IWD closed 8 months ago

pWIqmFHmGnqqlIyFDwZIlw1JWRHoo8AgicH1IWD commented 8 months ago

How can I get a broadway job's name and uid inside the flow? Name and UID are not passed as args in the startjob command. Fabric version 6.5.9

My main goal is to get the tries count (from k2_jobs table) so that I configure how many times I can retry a job.

i7QC2njzxHCc0LYBqCh0HQf30xF2DYuJjqtFbNe commented 8 months ago

Hi,

It is not recommended to update k2_jobs table directly.

You will better set the retries when using the startjob command, you can find more details on this Q&A

https://github.com/k2v-academy/K2View-Academy/issues/575