volcano icon indicating copy to clipboard operation
volcano copied to clipboard

How can I get tasks info (like affinity) by job on Enqueueable actions?

Open TimRazumov opened this issue 1 year ago • 2 comments

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

TimRazumov avatar Aug 07 '24 10:08 TimRazumov

Your pod shoud have an annotation of group-name

lowang-bh avatar Aug 08 '24 01:08 lowang-bh

ok, thanks

TimRazumov avatar Sep 06 '24 12:09 TimRazumov

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!).

stale[bot] avatar Apr 25 '25 23:04 stale[bot]