bored-beard-89967
05/09/2024, 9:06 PMSuccessfully serialized 39 flyte objects
, but then Error: unknown type <nil>
and for the specific workflow I see
| /tmp/workflows/04_flyte.my_package.abc.workflow_xyz_2.pb
| Failed | Error hydrating spec due to unknown type <nil> |
Any tips on how to debug this? Thanks in advance!bored-beard-89967
05/09/2024, 9:09 PMbored-beard-89967
05/09/2024, 9:12 PMIf you’re using Flytekit version >= v1.11.1, you don’t need to decorate withfound here.or inherit from Mashumaro’s@dataclass_json
.DataClassJSONMixin
bored-beard-89967
05/09/2024, 9:27 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
high-accountant-32689
05/10/2024, 1:15 AMbored-beard-89967
05/10/2024, 1:52 AMbored-beard-89967
05/10/2024, 1:54 AMhigh-accountant-32689
05/10/2024, 3:35 AMbored-beard-89967
05/10/2024, 3:39 PMbored-beard-89967
05/10/2024, 3:46 PMfrom flytekit import task, workflow, map_task
from dataclasses import dataclass
@dataclass
class MyOutputs:
b: str = "anything"
@task
def test_task(i: int) -> MyOutputs:
return MyOutputs()
@workflow
def test_workflow2() -> list[MyOutputs]:
return map_task(test_task)(i=[1, 2, 3])
Seems to do it for me. It looks like there wasn’t a test for map_task in the pr that touched some of this here: https://github.com/flyteorg/flytekit/pull/2279?bored-beard-89967
05/10/2024, 3:47 PMhigh-accountant-32689
05/10/2024, 4:43 PMhigh-accountant-32689
05/10/2024, 6:53 PMbored-beard-89967
05/10/2024, 6:57 PMCMD="
: \
&& mkdir -p ${FLYTE_TEMPDIR} \
&& pyflyte -k ${PROJECT_NAME} -k flyte.${PROJECT_NAME} serialize --image ${DOCKER_IMAGE_NAME}:${DOCKER_VERSION_TAG} fast workflows -f ${FLYTE_TEMPDIR} \
&& flytectl --admin.endpoint ${FLYTE_HOST} register files ${FLYTE_TEMPDIR}/* --project=${PROJECT_SLUG} --domain=${FLYTE_DOMAIN} --version=${FLYTE_VERSION} \
&& :
" ;
bored-beard-89967
05/10/2024, 6:59 PM<http://helm.sh/chart=flyte-core-v1.11.0|helm.sh/chart=flyte-core-v1.11.0>
so likely 1.11bored-beard-89967
05/10/2024, 7:02 PMhigh-accountant-32689
05/10/2024, 8:51 PMhigh-accountant-32689
05/10/2024, 8:52 PMflytectl
you're running?bored-beard-89967
05/10/2024, 8:55 PMroot@len-small-cpu:/src# flytectl version
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
A new release of flytectl is available: 0.6.35 → v0.8.18
To upgrade, run: flytectl upgrade
<https://github.com/flyteorg/flytectl/releases/tag/v0.8.18>
{
"App": "flytectl",
"Build": "bd00706",
"Version": "0.6.35",
"BuildTime": "2024-05-10 20:53:41.628788929 +0000 UTC m=+0.019757206"
}
bored-beard-89967
05/10/2024, 8:57 PMbored-beard-89967
05/10/2024, 9:01 PMbored-beard-89967
05/10/2024, 9:02 PMhigh-accountant-32689
05/10/2024, 9:06 PMdamp-lion-88352
05/10/2024, 11:48 PMFlyteFile
or something?damp-lion-88352
05/10/2024, 11:48 PMdamp-lion-88352
05/10/2024, 11:48 PMdamp-lion-88352
05/10/2024, 11:55 PMhigh-accountant-32689
05/11/2024, 12:49 AMdamp-lion-88352
05/11/2024, 1:08 AMalert-evening-53398
07/17/2024, 8:21 PMfreezing-airport-6809
curl -sL <https://ctl.flyte.org/install> | bash
alert-evening-53398
07/18/2024, 2:17 PM