Liezl Puzon
05/19/2022, 12:31 AMwith_retry_policy
with Dynamic Ops?
My workaround is to create a new op
def live_pricing_op_no_retry()
and set @op(retry_policy=<http://configs.NO|configs.NO>_RETRY_POLICY)
alex
05/19/2022, 2:33 PMsample.with_retry_policy(...)()
you will pass the fn to map without invoking it
dynamic.map(sample.with_retry_policy(...))
alex
05/19/2022, 2:35 PMop
definitions like with_retry_policy
or alias
are sort of like functools.partial
, they create a “pending op invocation” that has additional tweaks over the base op
definition that get locked in once its invoked and dependencies are establishedLiezl Puzon
05/19/2022, 2:54 PM@op(retry_policy=policy_a)
def sample():
...
@job(op_retry_policy=policy_b)
def sample_job():
sample.with_retry_policy(policy_b)