Skip to content

Commit

Permalink
job-monitor: rename job pod labels to be in line with run batch labels
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Nov 4, 2021
1 parent 41df84d commit 9fbfde1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reana_job_controller/job_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def watch_jobs(self, job_db, app=None):
for event in w.stream(
current_k8s_corev1_api_client.list_namespaced_pod,
namespace=REANA_RUNTIME_KUBERNETES_NAMESPACE,
label_selector=f"reana-workflow-uuid={self.workflow_uuid}",
label_selector=f"reana-run-job-workflow-uuid={self.workflow_uuid}",
):
logging.info("New Pod event received: {0}".format(event["type"]))
job_pod = event["object"]
Expand Down
2 changes: 1 addition & 1 deletion reana_job_controller/kubernetes_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def execute(self):
"template": {
"metadata": {
"name": backend_job_id,
"labels": {"reana-workflow-uuid": self.workflow_uuid},
"labels": {"reana-run-job-workflow-uuid": self.workflow_uuid},
},
"spec": {
"containers": [
Expand Down

0 comments on commit 9fbfde1

Please sign in to comment.