Hello team,
I was trying to trigger a workflow by passing the workflow input tasks and setting the onFailure to skipTask, as I did not want my workflow to be aborted if some task fails.
Despite of triggering the workflow by sdk and passing the workflow input.,
I can see that the workflow has been trigerred but with onFailure to be abortWorkflow
Could you please help me with solving this.
code for triggering workflow:
workflow_input = {
"tasks": [
{
"externalId": "gb-test-func-1",
"type": "function",
"name": "1710479974441",
"parameters": {
"function": {
"externalId": "gb-test-func-1",
"data": {}
}
},
"onFailure": "skipTask",
"dependsOn": []
},
{
"externalId": "gb-test-func-2",
"type": "function",
"name": "1710482066717",
"parameters": {
"function": {
"externalId": "gb-test-func-2",
"data": {}
}
},
"onFailure": "skipTask",
"dependsOn": [
{
"externalId": "gb-multiplication-by-2"
}
]
},
{
"externalId": "gb-multiplication-by-2",
"type": "function",
"name": "1710927303699",
"parameters": {
"function": {
"externalId": "gb-multiplication-by-2",
"data": {}
}
},
"onFailure": "skipTask",
"dependsOn": [
{
"externalId": "gb-test-func-1"
}
]
}
]
}
client.workflows.executions.trigger(
workflow_external_id='gargi-test-workflow', version=2, input=workflow_input
)
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support