elegant-australia-91422
07/29/2022, 1:00 AM@flytekit.dynamic
& with_overrides
? Curious if we could pass a resource configuration object to a workflow at runtime and have the @dynamic
step specify overrides at runtimefreezing-airport-6809
freezing-airport-6809
elegant-australia-91422
07/29/2022, 2:20 AMelegant-australia-91422
07/29/2022, 2:22 AM@workflow
, not @dynamic
) then it leads to the following error
AttributeError: 'Promise' object has no attribute 'cpu'
Although, when actually examining the pod in the cluster it looks like supplying args to with_overrides
for limits doesn't have any effect/I still see the following when running kubectl describe
on one of the pods (when I specified cpu="1"
& mem=100Mi
)
Limits:
cpu: 100m
memory: 200Mi
Requests:
cpu: 100m
memory: 200Mi
If I hard-code the values in it seems to work fine but it doesn't appear to be possible to specify with_overrides
w/ an argument to a workflow
'VoidPromise' object has no attribute 'with_overrides'
elegant-australia-91422
07/29/2022, 3:42 AMtall-lock-23197
@flytekit.dynamic
and with_overrides
isn’t yet possible. @billowy-sundown-31926, I remember you telling that this didn’t work. Could you elaborate more on this, please?freezing-airport-6809
billowy-sundown-31926
07/29/2022, 5:16 AMdynamic
with with_overrides
is a work in progress. Right now, it can't be used. cc @thankful-minister-83577
If we try to use with_overrides
with dynamic
workflow, it fails to execute.freezing-airport-6809
elegant-australia-91422
07/29/2022, 6:37 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
elegant-australia-91422
07/29/2022, 10:30 PMfreezing-airport-6809
freezing-airport-6809
elegant-australia-91422
07/29/2022, 10:31 PMfreezing-airport-6809
elegant-australia-91422
07/30/2022, 2:24 AMfreezing-airport-6809
elegant-australia-91422
07/30/2022, 2:26 AMfreezing-airport-6809