diff --git a/backend/copr_backend/background_worker_build.py b/backend/copr_backend/background_worker_build.py index 344609422..9e8b7ef23 100644 --- a/backend/copr_backend/background_worker_build.py +++ b/backend/copr_backend/background_worker_build.py @@ -450,6 +450,9 @@ def _start_remote_build(self): command += " --srpm --task-url {task_url} --detached" else: command += " --task-url {task_url} --chroot {chroot} --detached" + if self.job.priority is not None: + command += f"--priority {self.job.priority}" + command = command.format(task_url=self.job.task_url, chroot=self.job.chroot) diff --git a/backend/copr_backend/job.py b/backend/copr_backend/job.py index 47f8d8367..14616154e 100644 --- a/backend/copr_backend/job.py +++ b/backend/copr_backend/job.py @@ -73,6 +73,8 @@ def __init__(self, task_data, worker_opts): self.results = None self.appstream = None + self.priority = None + # TODO: validate update data for key, val in task_data.items(): key = str(key)