Leiqing
02/06/2023, 7:41 AMfailed to create workflow in propeller json: error calling MarshalJSON for type *v1alpha1.Inputs: Marshal called with nil
Is this expected?Bernhard Stadlbauer
02/06/2023, 8:03 AMLeiqing
02/06/2023, 8:38 AM@task
def test() -> str:
return ""
@task(task_config=Pod(...))
def test() -> str:
return ""
Bernhard Stadlbauer
02/06/2023, 8:44 AMDan Rammer (hamersaw)
02/06/2023, 3:40 PM@task(
task_config=Pod(
pod_spec=V1PodSpec(
containers=[
V1Container(
name="primary",
resources=V1ResourceRequirements(
requests={"cpu": ".5", "memory": "500Mi"},
limits={"cpu": ".5", "memory": "500Mi"},
),
)
],
),
)
)
def my_empty_pod_task() -> str:
return "hello world!"
@workflow
def empty_pod_workflow() -> str:
s = my_empty_pod_task()
return s
without any issue. If there is a problem with this, it is a very large problem.
Also, can I ask what the Pod
definition is? Perhaps there is something that results in mis-formatted inputs / output values.Ketan (kumare3)
Dan Rammer (hamersaw)
02/06/2023, 4:05 PM