How can I get tasks info (like affinity) by job on Enqueueable actions?
Please describe your problem in detail
Hi everyone! I have a problem: on Enqueueable actions field job.Tasks is empty, but I want to use tasks details like pod's affinity or priority in my JobEnqueueableFn's logic
example:
ssn.AddJobEnqueueableFn(p.Name(), func(obj any) int {
job := obj.(*api.JobInfo)
for _, task := range job.Tasks { <---------- it is empty and it is problem for me
if !p.myFunc(task) {
return util.Permit
}
}
.....
How can I to do it? Are there any ways?
Any other relevant information
No response
Your pod shoud have an annotation of group-name
ok, thanks
Hello 👋 Looks like there was no activity on this issue for last 180 days. Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗 If there will be no activity for 90 days, this issue will be closed (we can always reopen an issue if we need!).