acoustic-carpenter-78188
12/29/2025, 9:57 PMfrom flytekit import ImageSpec, task, workflow
image_spec = ImageSpec(
name="common/myflyte",
requirements="uv.lock",
registry="<http://registry.someprivateserver.com/images|registry.someprivateserver.com/images>",
)
@task(container_image=image_spec)
def task1(word: str) -> str:
return f"Hello {word}"
@workflow()
def workflow(word: str) -> str:
message = task1(word)
return message
I run the workflow from terminal (I configured dev/prod domains in flyte-binary and created project test2 by flytectl):
pyflyte run --remote --project test2 --domain dev workflow.py workflow --word 111
Running Execution on Remote.
Image <http://registry.someprivateserver.com/images/common/myflyte:1jjq4Q_gQwJ1bIvmV5qebQ|registry.someprivateserver.com/images/common/myflyte:1jjq4Q_gQwJ1bIvmV5qebQ> found. Skip building.
0:00:01 Running execution on remote.
[✔] Go to <https://flyte.someprivateserver.com:443/console/projects/test2/domains/dev/executions/aphg5qxjf4r6pmmnw4wm> to see execution in the console.
But in flyte console my workflow is in failed state with the message:
Workflow execution not found in flyteadmin.
And task1 is failed.
Logs of flyte's pod contains:
2025/12/29 21:16:17 /flyteorg/build/flyteadmin/pkg/repositories/gormimpl/task_repo.go:33 ERROR: duplicate key value violates unique constraint "tasks_pkey" (SQLSTATE 23505)
[3.198ms] [rows:0] INSERT INTO "tasks" ("created_at","updated_at","deleted_at","project","domain","name","version","closure","digest","type","short_description") VALUES ('2025-12-29 21:16:17.26','2025-12-29 21:16:17.26',NULL,'test2','dev','workflow.task1','HAmd1O6xBOmlZtR9rqP6Zg','<binary>','3��}Hk-�m��?�U�ڝ���|C�@�N5<�','python-task','') RETURNING "id"
E1229 21:16:17.717250 7 workers.go:103] error syncing 'test2-dev/a6rzk7d7vx2jtxj66866': Operation cannot be fulfilled on <http://flyteworkflows.flyte.lyft.com|flyteworkflows.flyte.lyft.com> "a6rzk7d7vx2jtxj66866": the object has been modified; please apply your changes to the latest version and try again
What could be a reason?
### Expected behavior
Workflow should suceed in flyte console.
### Additional context to reproduce
No response
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte