예제 #1
0
    def validate_schedule_interval(self, attribute, value):
        """
        Validate the schedule_interval format.

        Schedule intervals can be either in CRON format or one of:
        @once, @hourly, @daily, @weekly, @monthly, @yearly
        or a timedelta []d[]h[]m
        """
        if not is_schedule_interval(value):
            raise ValueError(f"Invalid schedule_interval {value}.")
예제 #2
0
파일: dag.py 프로젝트: Iinh/bigquery-etl
 def validate_schedule_interval(self, attribute, value):
     """Validate the schedule_interval format."""
     if not is_schedule_interval(value):
         raise ValueError(f"Invalid schedule_interval {value}.")