Rahul Mehta
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 runtimeKetan (kumare3)
Rahul Mehta
07/29/2022, 2:20 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'
Samhita Alla
@flytekit.dynamic
and with_overrides
isn’t yet possible. @Smriti Satyan, I remember you telling that this didn’t work. Could you elaborate more on this, please?Ketan (kumare3)
Smriti Satyan
07/29/2022, 5:16 AMdynamic
with with_overrides
is a work in progress. Right now, it can't be used. cc @Yee
If we try to use with_overrides
with dynamic
workflow, it fails to execute.Ketan (kumare3)
Rahul Mehta
07/29/2022, 6:37 PMKetan (kumare3)
Rahul Mehta
07/29/2022, 10:30 PMKetan (kumare3)
Rahul Mehta
07/29/2022, 10:31 PMKetan (kumare3)
Rahul Mehta
07/30/2022, 2:24 AMKetan (kumare3)
Rahul Mehta
07/30/2022, 2:26 AMKetan (kumare3)