Gil Rutter
08/07/2023, 4:25 PM@asset
to wrap the None
-returning tasks and using non_argument_deps=
to specify dependencies.
To match what we had before, I have the following requirements regarding execution during runs of a job (feel free to try and talk me out of having these requirements)
• It should be possible to tag an asset such that, if any of its dependencies fail, it executes anyway
• It should be possible to tag an asset with a time of day (format of this tbd) after which the asset will start to run even if its dependencies have not completed
I believe this would require changing ActiveExecution._update
(here) and somehow getting my altered version where it's needed.
Could I get some initial feedback on what I'm looking to do please?Sean Lopp
08/07/2023, 7:36 PMGil Rutter
08/07/2023, 7:55 PMGil Rutter
08/07/2023, 7:57 PMSean Lopp
08/07/2023, 8:09 PM@schedule(job=c_only_asset_job, cron_schedule="0 11 * * *")
def sweeper_job_schedule(context: ScheduleEvaluationContext):
# code to check for A, B, C
...context.instance.get_runs(filters=...)
if not ABC_run:
return RunRequest(...)
I just would personally hesitate to modify the execution plan, that's pretty far into the internalsGil Rutter
08/07/2023, 8:22 PMGil Rutter
08/07/2023, 8:32 PMGil Rutter
08/07/2023, 8:52 PMstale_assets_only=True
and I could define staleness appropriately. Would this protect against all potential races?Sean Lopp
08/07/2023, 8:57 PMGil Rutter
08/07/2023, 9:04 PMSean Lopp
08/07/2023, 9:05 PMGil Rutter
08/07/2023, 9:13 PMSean Lopp
08/07/2023, 9:33 PM