<#5852 [BUG] missing button to rerun subworkflow> ...
# flyte-github
c
#5852 [BUG] missing button to rerun subworkflow Issue created by marcellomonachesi-tomtom ### 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: [image](https://private-user-images.githubusercontent.com/95334804/377360396-fa7e1990-5fe7-42d1-aca2-0e03d64b95bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDgzOTEyODcsIm5iZiI6MTc0ODM5MDk4NywicGF0aCI6Ii85NTMzNDgwNC8zNzczNjAzOTYtZmE3ZTE5OTAtNWZlNy00MmQxLWFjYTItMGUwM2Q2NGI5NWJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTI4VDAwMDk0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkZWU0YmRjODdmMGRjY2EyY2M4OTM4YTY1ZDA5NjJhODlhY2I4NTA2NjkwMzg4MTM3ZTI1OTA2NWY1ZmJiN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ljQrm_LgIP3JfiYYmEKyKD6gWO-fM9EM9HLK41pfn6Q) But it doesn't appear in the sub-workflow: [image](https://private-user-images.githubusercontent.com/95334804/377360637-890bb288-a52c-4e30-92ae-a1e9cb580219.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDgzOTEyODcsIm5iZiI6MTc0ODM5MDk4NywicGF0aCI6Ii85NTMzNDgwNC8zNzczNjA2MzctODkwYmIyODgtYTUyYy00ZTMwLTkyYWUtYTFlOWNiNTgwMjE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTI4VDAwMDk0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0NGI1M2MzMjZlNzI4ZDg3NGEyNTQ3YWU5ZGRjNmE0MjNjYzQ1MmFkMjc0YTI4NTBkNTI1NDBkN2Q0NzAzMGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9dx2zNXvQmhZiKX5hq13AjxU3idu0-cMRLoStCklBvc) 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: from flytekit import ( task, dynamic, Resources, ) import typing def get_resources() -> dict: # This is hardcoded but should be loaded from a file return {"job_a": {"cpu": "1", "mem": "1Gi"}, "job_b": {"cpu": "2", "mem": "2Gi"}} @dynamic def multiple(jobs: typing.List[str]): resources = get_resources() for job in jobs: single(job=job, resources=resources[job]) @dynamic def single(job: str, resources: dict): process(job=job).with_overrides( requests=Resources(cpu=resources["cpu"], mem=resources["mem"]) ) # other tasks... @task def process(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 flyteorg/flyte