Actions
action #162029
closedAdd support for `_PRIORITY`-setting when posting single jobs (e.g. via openqa-clone-job)
Description
Motivation¶
When scheduling a product one can already specify _PRIORITY=…
to set the prio of the jobs. It would be very useful it that was possible as well when creating a single set of jobs.
Acceptance criteria¶
- AC1: It is possible to specify the job priority via the setting
_PRIORITY
when creating a single set of jobs. The specified priority will affect all jobs being created and no actual setting with the key_PRIORITY
is added.
Suggestions¶
- Handle the priority similar to how we already handle "main settings" in https://github.com/os-autoinst/openQA/blob/ef66dc1e76ac1ea42c495d77d1bde74c1b4413fe/lib/OpenQA/Schema/ResultSet/Jobs.pm#L164.
- For the sake of consistency and to avoiding redundancy: Remove handling of
PRIO
in https://github.com/os-autoinst/openQA/blob/ef66dc1e76ac1ea42c495d77d1bde74c1b4413fe/lib/OpenQA/Schema/Result/ScheduledProducts.pm#L337 and make sure that at this point the priority is already assigned via_PRIORITY
(and notPRIO
).
Actions