helpful-van-10149
07/12/2024, 2:26 AMlog: /tmp/_pb_output/132_src.python.flyte.radar_ml.model_workflows.lpm.main.run_experiment_pipeline_1.pb | Failed | Error registering file due to rpc error: code = |
| | | InvalidArgument desc = task with different structure |
| | | already exists with id resource_type:TASK |
| | | project:"radar-ml" domain:"adhoc" |
| | | name:"src.python.flyte.radar_ml.model_workflows.lpm.main.run_experiment_pipeline" |
| | | version:"multi-workflows-e3660b201e6d"
4. Because we use flytectl register --continueOnError
,the workflow 2 will register successfully but it will reuse the task with the old image from workflow 1.
The immediate fix I can think of is: we add timestamp in the version and it becomes {branch_name} + {git_hash} + {timestamp}. This will make sure the task won't conflict.
In the long term, does Flyte consider to use workflow + function reference + version
as task key? It is very common for our users to implement shared tasks, so relying on function reference is a huge pain for us.helpful-van-10149
07/15/2024, 4:01 PMaverage-finland-92144
07/22/2024, 10:17 PMhelpful-van-10149
07/23/2024, 4:28 PMaverage-finland-92144
07/23/2024, 4:55 PMbrash-london-45337
07/24/2024, 5:02 PM{{ registration.version }}
Sounds like what we want, but that would just take the latest available version I'm guessing? We definitely wouldn't want users to have to manually specify a version of the tasktall-lock-23197
any updates to TaskA would first need to be registered before the two workflows otherwise the workflows would point to a stale version of TaskA. Is that correct?you should update the version in your reference entity when you update your upstream entity. that should help with keeping your reference entity up to date.
but that would just take the latest available version I'm guessing?the macro is populated during workflow registration. if you want to update the version, you'd need to re-register your workflow.