From ec2b5e47e504eee00dc51bf5ba88d22f560eeb07 Mon Sep 17 00:00:00 2001 From: zjgemi Date: Sun, 20 Jul 2025 09:16:13 +0800 Subject: [PATCH] fix: job_name for openapi Signed-off-by: zjgemi --- src/dflow/plugins/dispatcher.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dflow/plugins/dispatcher.py b/src/dflow/plugins/dispatcher.py index d7f18f90..523860b5 100644 --- a/src/dflow/plugins/dispatcher.py +++ b/src/dflow/plugins/dispatcher.py @@ -223,6 +223,12 @@ def __init__(self, if "app_key" not in remote_profile and bohrium.config[ "app_key"] is not None: remote_profile["app_key"] = bohrium.config["app_key"] + if "platform" not in remote_profile: + remote_profile["platform"] = "ali" + if "machine_type" not in remote_profile: + remote_profile["machine_type"] = "c4_m8_cpu" + if "job_name" not in remote_profile: + remote_profile["job_name"] = "{{pod.name}}" # set env to prevent dispatcher from considering different tasks as one self.resources_dict = {