You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is by design, but the "Rerun Task" button doesn't appear in the sub-workflow.
It appears in the parent workflow:
But it doesn't appear in the sub-workflow:
If this is by design, how to structure the workflow to relaunch a dynamic sub-workflow?
Use case: the "multiple" (dynamic) workflow launches many "single" (dynamic) workflows. The "single" workflow is independent from the others. If one single workflow fails others should continue. Then we would like to relaunch the failed single workflow. The "recover" function doesn't work for this use case. Please check the example code below.
Expected behavior
The UI provides a button to relaunch the subworkflow.
Additional context to reproduce
This is the example to replicate the issue:
fromflytekitimport (
task,
dynamic,
Resources,
)
importtypingdefget_resources() ->dict:
# This is hardcoded but should be loaded from a filereturn {"job_a": {"cpu": "1", "mem": "1Gi"}, "job_b": {"cpu": "2", "mem": "2Gi"}}
@dynamicdefmultiple(jobs: typing.List[str]):
resources=get_resources()
forjobinjobs:
single(job=job, resources=resources[job])
@dynamicdefsingle(job: str, resources: dict):
process(job=job).with_overrides(
requests=Resources(cpu=resources["cpu"], mem=resources["mem"])
)
# other tasks...@taskdefprocess(job: str):
print("Process job", job)
Screenshots
No response
Are you sure this issue hasn't been raised already?
Yes
Have you read the Code of Conduct?
Yes
The text was updated successfully, but these errors were encountered:
To be able to relaunch the sub-workflow I found this option: #3169
Launching the sub-workflow as a launch plan will create a new execution. The new execution can then be relaunched.
I don't know if this is the only way to achieve this, but it works for now.
@marcellomonachesi-tomtom Re-running a subworkflow (workflow node) from that view is a missing feature. We have briefly discussed adding support for rerunning nodes as opposed to rerunning just tasks, but there aren't any plans on adding that any time soon.
If there's more open source demand that could prompt adding that feature - would you mind making an issue for a feature request to add support rerunning nodes?
Describe the bug
I don't know if this is by design, but the "Rerun Task" button doesn't appear in the sub-workflow.
It appears in the parent workflow:
But it doesn't appear in the sub-workflow:
If this is by design, how to structure the workflow to relaunch a dynamic sub-workflow?
Use case: the "multiple" (dynamic) workflow launches many "single" (dynamic) workflows. The "single" workflow is independent from the others. If one single workflow fails others should continue. Then we would like to relaunch the failed single workflow. The "recover" function doesn't work for this use case. Please check the example code below.
Expected behavior
The UI provides a button to relaunch the subworkflow.
Additional context to reproduce
This is the example to replicate the issue:
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: