Wolfgang Steitz
04/06/2021, 9:36 AMChris White
prefect.context["scheduled_start_time"]
to perform your task check, which is a datetime object representing the scheduled start time for the flow runSamuel Hinton
04/06/2021, 9:43 AMfrom prefect.engine.signals import SKIP
if prefect.context["scheduled_start_time"] + max_late < datetime.datetime.now(tz=pytz.utc):
raise SKIP("Task is too late, skipping")
Wolfgang Steitz
04/06/2021, 9:50 AM