boundless-lifeguard-61788
10/15/2024, 4:35 PMboundless-lifeguard-61788
10/15/2024, 4:36 PM@reference_task(
project="myproject",
domain="development",
name="mytask.test",
version="1234556",
)
alert-oil-1341
10/15/2024, 4:45 PM{{ registration.version }}
macro as described here - https://docs.flyte.org/projects/cookbook/en/v0.3.66/auto/core/flyte_basics/reference_task.html#reference-taskalert-oil-1341
10/15/2024, 4:46 PMboundless-lifeguard-61788
10/15/2024, 5:27 PMRequest rejected by the API, due to Invalid input.
RPC Failed, with Status: StatusCode.INVALID_ARGUMENT
average-finland-92144
10/18/2024, 9:41 PMflytectl register
only at the timeboundless-lifeguard-61788
10/21/2024, 11:16 PMflytectl register
on my workflow which contains a reference task, it only works if I pass it the version which defeats what I am trying to do.
pyflyte --pkgs test package -f
flytectl register files --archive flyte-package.tgz --version "ADKDdgdgTEfg" -p test -d development
What would be the correct way for a CICD to fetch the latest task for a reference task
@reference_task(
project="test",
domain="development",
name="simple.print_date",
version="{{ registration.version }}",
)
def print_date() -> str:
...
@workflow
def test()-> str:
return print_date()
The errors
if I leave --version out
Error: rpc error: code = InvalidArgument desc = missing version
{"json":{},"level":"error","msg":"rpc error: code = InvalidArgument desc = missing version"
and if I give it a new version
version:\"1\"] with err missing entity of type TASK with identifier project:\"test\" domain:\"development\" name:\"simple.print_date\" version:\"1\""
boundless-lifeguard-61788
10/21/2024, 11:49 PMflytectl register files --archive flyte-package.tgz --version "1" -p test -d development