https://flyte.org logo
#ask-the-community
Title
# ask-the-community
n

Nizar Hattab

10/04/2023, 12:07 PM
Hey all I am trying to register/run a workflow on remote cluster, but i get this error:
Copy code
RPC Failed, with Status: StatusCode.INVALID_ARGUMENT
        details: task with different structure already exists with id resource_type:TASK project:"project_name" domain:"staging" name:"some_task_name" version:"Eg1iLWFry-AOPcFmT5AdYQ=="
I tried archiving older versions of that task, but I get the same error over and over.. How can I delete a task? What else could solve this issue? thanks
l

L godlike

10/04/2023, 12:08 PM
Maybe you can try use
--version
flag to specify other version and check if it is worked!
n

Nizar Hattab

10/04/2023, 12:10 PM
in run , there is no option called --version
l

L godlike

10/04/2023, 12:10 PM
pyflyte run
--remote
n

Nizar Hattab

10/04/2023, 12:10 PM
image.png
l

L godlike

10/04/2023, 12:11 PM
pyflyte register workflow.py
--version TEST
try this
n

Nizar Hattab

10/04/2023, 12:11 PM
image.png
l

L godlike

10/04/2023, 12:11 PM
use pyflyte register
please tell me if it works, thanks a lot!
n

Nizar Hattab

10/04/2023, 12:13 PM
Copy code
RPC Failed, with Status: StatusCode.INVALID_ARGUMENT
        details: task with different structure already exists with id resource_type:TASK project:"project_name" domain:"staging" name:"task_name" version:"test"
same error
l

L godlike

10/04/2023, 12:13 PM
Can you provide the full code? And do you activate the flyte cluster such as
flytectl demo start
n

Nizar Hattab

10/04/2023, 12:14 PM
we have a remote cluster. we have other workflows registered there
its not a demo one
semi production. cant share everything
l

L godlike

10/04/2023, 12:14 PM
Do you use the latest flytectl and flytekit?
Can you try another file?
n

Nizar Hattab

10/04/2023, 12:15 PM
flytekit 1.9.1
l

L godlike

10/04/2023, 12:15 PM
And maybe tell me the different of the files between worked and not worked
n

Nizar Hattab

10/04/2023, 12:15 PM
the bad thing is that , sometimes it works. and sometimes it doesnt
it's hard to track
l

L godlike

10/04/2023, 12:16 PM
I want to help you, but you need to provide more details. I am clueless. Or maybe you can direct message me.
n

Nizar Hattab

10/04/2023, 12:16 PM
so maybe it depends on something else other than file itself