You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logic for rerun-from-here and runner reentrance rely on being able to reconstruct a future graph from the runs in the DB. Part of this is setting the properties on the Future using properties of the Run. Unfortunately, not all properties stored on a Future object are stored on the Run. Most of the time, things will work anyway, because the reconstruction code uses the function to instantiate the future. In pseudo-code:
Thus if the function sets a property (ex: retry), the recreated future will have it:
# when recreating a future from a run with this function, `retry`# will be instantiated to MY_RETRY_SETTINGS.@func(retry=MY_RETRY_SETTINGS)deffoo(some_arg: ArgType) ->int:
# ...
However, if the pipeline is such that the property is set dynamically, and the property is not stored in the run, we will not be able to recreate it:
@funcdefpipeline(some_arg: ArgType) ->int:
# if the pipeline's runner is restarted during the execution of# `foo`, or we do a 'rerun from here' for `foo`,# we will not see the override to its retry settings.intermediate=foo(some_arg).set(
retry=RETRY_SETTINGSifsome_arg.is_risky() elseNone
)
# ...returnresult
Several properties are impacted by this issue:
cache
retry
standalone
base_image_tag
timeout_mins
The text was updated successfully, but these errors were encountered:
The logic for rerun-from-here and runner reentrance rely on being able to reconstruct a future graph from the runs in the DB. Part of this is setting the properties on the
Future
using properties of theRun
. Unfortunately, not all properties stored on aFuture
object are stored on theRun
. Most of the time, things will work anyway, because the reconstruction code uses the function to instantiate the future. In pseudo-code:Thus if the function sets a property (ex:
retry
), the recreated future will have it:However, if the pipeline is such that the property is set dynamically, and the property is not stored in the run, we will not be able to recreate it:
Several properties are impacted by this issue:
The text was updated successfully, but these errors were encountered: