You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/09 11:06:16 UTC

[GitHub] [airflow] eladkal commented on a change in pull request #21456: Databricks Submit/RunNow operator improved maintenance window handling

eladkal commented on a change in pull request #21456:
URL: https://github.com/apache/airflow/pull/21456#discussion_r802544585



##########
File path: airflow/providers/databricks/hooks/databricks.py
##########
@@ -112,6 +115,36 @@ def __repr__(self) -> str:
         return str(self.__dict__)
 
 
+class WeekDay(Enum):
+    """Utility class to specify the weekday for maintenance."""
+    Mon = 0
+    Tue = 1
+    Wed = 2
+    Thu = 3
+    Fri = 4
+    Say = 5
+    Sun = 6

Review comment:
       We already have enum for that
   https://github.com/apache/airflow/blob/main/airflow/utils/weekday.py#L23-L32




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org