Upload files to "expected_workflows"
Some checks failed
CI Workflow / Containerize the Flow (push) Has been cancelled
CI Workflow / Testing the Flow (push) Has been cancelled

This commit is contained in:
admin user 2025-05-23 13:06:57 +00:00
parent 96c7b9f8cf
commit c991553d5c
3 changed files with 0 additions and 9 deletions

View File

@ -16,7 +16,6 @@ logger = logging.getLogger(__name__)
class test_repo_test_branch: class test_repo_test_branch:
@temporalio.workflow.run @temporalio.workflow.run
async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]: async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]:
await temporalio.workflow.sleep(0)
workflow_info = temporalio.workflow.info() workflow_info = temporalio.workflow.info()
workflow_output: Dict[str, Any] = { workflow_output: Dict[str, Any] = {
"workflow_id": workflow_info.workflow_id, "workflow_id": workflow_info.workflow_id,
@ -242,7 +241,6 @@ class test_repo_test_branch:
if isinstance(result, Exception): if isinstance(result, Exception):
logger.error(f"Task failed with exception: {result}") logger.error(f"Task failed with exception: {result}")
workflow_output["status"] = "failed" workflow_output["status"] = "failed"
await temporalio.workflow.sleep(0)
# Execution step 2 # Execution step 2
tasks = [task_functions[node_id]() for node_id in ['m3aiq7ixuo6du35h8tr', 'm3aiqkrv4k1y6654ymr']] tasks = [task_functions[node_id]() for node_id in ['m3aiq7ixuo6du35h8tr', 'm3aiqkrv4k1y6654ymr']]
results_step = await asyncio.gather(*tasks, return_exceptions=True) results_step = await asyncio.gather(*tasks, return_exceptions=True)
@ -250,7 +248,6 @@ class test_repo_test_branch:
if isinstance(result, Exception): if isinstance(result, Exception):
logger.error(f"Task failed with exception: {result}") logger.error(f"Task failed with exception: {result}")
workflow_output["status"] = "failed" workflow_output["status"] = "failed"
await temporalio.workflow.sleep(0)
# Update workflow status to completed if not failed # Update workflow status to completed if not failed
if workflow_output["status"] != "failed": if workflow_output["status"] != "failed":

View File

@ -16,7 +16,6 @@ logger = logging.getLogger(__name__)
class test_repo_test_branch: class test_repo_test_branch:
@temporalio.workflow.run @temporalio.workflow.run
async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]: async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]:
await temporalio.workflow.sleep(0)
workflow_info = temporalio.workflow.info() workflow_info = temporalio.workflow.info()
workflow_output: Dict[str, Any] = { workflow_output: Dict[str, Any] = {
"workflow_id": workflow_info.workflow_id, "workflow_id": workflow_info.workflow_id,
@ -240,7 +239,6 @@ class test_repo_test_branch:
if isinstance(result, Exception): if isinstance(result, Exception):
logger.error(f"Task failed with exception: {result}") logger.error(f"Task failed with exception: {result}")
workflow_output["status"] = "failed" workflow_output["status"] = "failed"
await temporalio.workflow.sleep(0)
# Update workflow status to completed if not failed # Update workflow status to completed if not failed
if workflow_output["status"] != "failed": if workflow_output["status"] != "failed":

View File

@ -16,7 +16,6 @@ logger = logging.getLogger(__name__)
class test_repo_test_branch: class test_repo_test_branch:
@temporalio.workflow.run @temporalio.workflow.run
async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]: async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]:
await temporalio.workflow.sleep(0)
workflow_info = temporalio.workflow.info() workflow_info = temporalio.workflow.info()
workflow_output: Dict[str, Any] = { workflow_output: Dict[str, Any] = {
"workflow_id": workflow_info.workflow_id, "workflow_id": workflow_info.workflow_id,
@ -242,7 +241,6 @@ class test_repo_test_branch:
if isinstance(result, Exception): if isinstance(result, Exception):
logger.error(f"Task failed with exception: {result}") logger.error(f"Task failed with exception: {result}")
workflow_output["status"] = "failed" workflow_output["status"] = "failed"
await temporalio.workflow.sleep(0)
# Execution step 2 # Execution step 2
tasks = [task_functions[node_id]() for node_id in ['m3aiq7ixuo6du35h8tr']] tasks = [task_functions[node_id]() for node_id in ['m3aiq7ixuo6du35h8tr']]
results_step = await asyncio.gather(*tasks, return_exceptions=True) results_step = await asyncio.gather(*tasks, return_exceptions=True)
@ -250,7 +248,6 @@ class test_repo_test_branch:
if isinstance(result, Exception): if isinstance(result, Exception):
logger.error(f"Task failed with exception: {result}") logger.error(f"Task failed with exception: {result}")
workflow_output["status"] = "failed" workflow_output["status"] = "failed"
await temporalio.workflow.sleep(0)
# Execution step 3 # Execution step 3
tasks = [task_functions[node_id]() for node_id in ['m3aiqkrv4k1y6654ymr']] tasks = [task_functions[node_id]() for node_id in ['m3aiqkrv4k1y6654ymr']]
results_step = await asyncio.gather(*tasks, return_exceptions=True) results_step = await asyncio.gather(*tasks, return_exceptions=True)
@ -258,7 +255,6 @@ class test_repo_test_branch:
if isinstance(result, Exception): if isinstance(result, Exception):
logger.error(f"Task failed with exception: {result}") logger.error(f"Task failed with exception: {result}")
workflow_output["status"] = "failed" workflow_output["status"] = "failed"
await temporalio.workflow.sleep(0)
# Update workflow status to completed if not failed # Update workflow status to completed if not failed
if workflow_output["status"] != "failed": if workflow_output["status"] != "failed":