Upload files to "/"
This commit is contained in:
parent
428f732a84
commit
6ce236ba8b
@ -44,7 +44,8 @@ flow_name_safe = sanitize_name(FLOW_NAME)
|
|||||||
commit_id_safe = sanitize_name(COMMIT_ID_SHORT)
|
commit_id_safe = sanitize_name(COMMIT_ID_SHORT)
|
||||||
|
|
||||||
# Construct the task queue name
|
# Construct the task queue name
|
||||||
TASK_QUEUE = f"{flow_name_safe}_{commit_id_safe}"
|
# TASK_QUEUE = f"{flow_name_safe}_{commit_id_safe}"
|
||||||
|
TASK_QUEUE = flow_name_safe
|
||||||
|
|
||||||
# Import the default workflow module
|
# Import the default workflow module
|
||||||
workflow_module_name = "workflow" # Hardcoded to the default module name 'workflow.py'
|
workflow_module_name = "workflow" # Hardcoded to the default module name 'workflow.py'
|
||||||
@ -55,7 +56,8 @@ except ImportError as e:
|
|||||||
|
|
||||||
# Get the workflow class
|
# Get the workflow class
|
||||||
# Assuming the workflow class is named as <FlowName>Workflow, e.g., HybridWorkflow
|
# Assuming the workflow class is named as <FlowName>Workflow, e.g., HybridWorkflow
|
||||||
workflow_class_name = f"{flow_name_safe}_{commit_id_safe}"
|
# workflow_class_name = f"{flow_name_safe}_{commit_id_safe}"
|
||||||
|
workflow_class_name = flow_name_safe
|
||||||
workflow_class = getattr(workflow_module, workflow_class_name, None)
|
workflow_class = getattr(workflow_module, workflow_class_name, None)
|
||||||
|
|
||||||
if not workflow_class:
|
if not workflow_class:
|
||||||
|
|||||||
@ -44,7 +44,8 @@ FLOW_NAME = REPO_NAME + "_" + BRANCH_NAME
|
|||||||
flow_name_safe = sanitize_name(FLOW_NAME)
|
flow_name_safe = sanitize_name(FLOW_NAME)
|
||||||
commit_id_safe = sanitize_name(COMMIT_ID_SHORT)
|
commit_id_safe = sanitize_name(COMMIT_ID_SHORT)
|
||||||
|
|
||||||
workflow_class_name = f"{flow_name_safe}_{commit_id_safe}"
|
# workflow_class_name = f"{flow_name_safe}_{commit_id_safe}"
|
||||||
|
workflow_class_name = flow_name_safe
|
||||||
|
|
||||||
def load_flow_definition(file_path):
|
def load_flow_definition(file_path):
|
||||||
"""Load the flow definition from a JSON file."""
|
"""Load the flow definition from a JSON file."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user