Skip to content

Instantly share code, notes, and snippets.

@LucasMMota
Last active August 24, 2021 22:34
Show Gist options
  • Save LucasMMota/3db4f354a0b2494b61e19485ec8842d5 to your computer and use it in GitHub Desktop.
Save LucasMMota/3db4f354a0b2494b61e19485ec8842d5 to your computer and use it in GitHub Desktop.
SLA argument docstring in airflow.models.baseoperator.BaseOperator
"""
:param sla: time by which the job is expected to succeed. Note that
this represents the ``timedelta`` after the period is closed. For
example if you set an SLA of 1 hour, the scheduler would send an email
soon after 1:00AM on the ``2016-01-02`` if the ``2016-01-01`` instance
has not succeeded yet.
The scheduler pays special attention for jobs with an SLA and
sends alert
emails for sla misses. SLA misses are also recorded in the database
for future reference. All tasks that share the same SLA time
get bundled in a single email, sent soon after that time. SLA
notification are sent once and only once for each task instance.
:type sla: datetime.timedelta
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment