'The schedule interval of the DAG always wins over individual tasks so
that tasks within a DAG always line up. The task still needs a
schedule_interval as it may not be attached to a DAG.'

@property
def schedule_interval(self):

    if self.has_dag():
        return self.dag._schedule_interval
    else:
        return self._schedule_interval
