apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
36.42k stars 14.11k forks source link

Change schedule when changing timezone on timezone-dropdown #28557

Open alejandrofm opened 1 year ago

alejandrofm commented 1 year ago

Description

Change the Schedule column when the timezone dropdown changes, to make sure all the information on the view relates to the same timezone.

Use case/motivation

It will make it easier to have a first glance at the DAGs to view the schedule on the selected timezone. Currently have to add/subtract hours to the Schedule column to know the execution time on a particular Timezone

Related issues

No response

Are you willing to submit a PR?

Code of Conduct

herlambang commented 1 year ago

Hi, can I take this one?

potiuk commented 1 year ago

feel free

herlambang commented 1 year ago

Hi,

I'd assume that this should be converting generic cron expression (which the result is currently being persisted to dag.timetable_description), into timezone aware description on-the-fly.

The conversion it self depends on cron-descriptor which is not currently having the ability on supporting timezone.

Been looking around for similar libraries that able to support this case, but not yet found one. So probably the best way is to implement it within the cron-descriptor package which is out side of this repository working scope.

potiuk commented 1 year ago

Possibly - I have not much eperience with that part -personally/