-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show schedule_interval/timetable description for schedule cron expression in Airflow UI #16692
Comments
Sounds like a nice feature to me. How do you plan to geenrate the description? I know there are some online services but am not aware of a Python or JavaScript package for this. And it seems a bit weird to implement it directly in Airflow’s code base. |
https://github.com/azza-bazoo/prettycron might do the job? We should check it supports at least everything croniter does. Oh, LGPLv3 -- we can't use that. Other option https://www.npmjs.com/package/cronstrue |
croniter actually “supports” some weird (invalid?) cron formats, for example |
I have used cronstrue previously in my projects. |
Let’s try it out then! We can carry on with the details in the PR thread. |
Found the discussion on croniter formats: #16107 (comment). It was not a separate issue but only mentioned in-passing, no wonder I couldn’t locate it before… Although the six-segment format is valid (TIL), croniter’s current behaviour is not standard, so I think we should do some additional validation to exclude that explicitly. |
Cronstrue in Python: https://github.com/Salamek/cron-descriptor |
…16692-show-cron-schedule-description-in-ui
…16692-show-cron-schedule-description-in-ui
…16692-show-cron-schedule-description-in-ui-v2
…16692-show-cron-schedule-description-in-ui
…16692-show-cron-schedule-description-in-ui
…16692-show-cron-schedule-description-in-ui
…16692-show-cron-schedule-description-in-ui
…16692-show-cron-schedule-description-in-ui
…ttps://github.com/pateash/airflow into apache#16692-show-cron-schedule-description-in-ui
…n-schedule-description-in-ui
Signed-off-by: Ashish Patel <ashishpatel0720@gmail.com>
* Create ap_codeql-analysis.yml * 16692 - deleted file * 16692 - changes done * 16692 - test added * 16692 - pre-commits fixed * 16692 - pre-commits fixed * 16692 - pre-commits fixed * 16692 - Runs removed from description * Update airflow/www/templates/airflow/dags.html Co-authored-by: Ryan Hamilton <ryan@ryanahamilton.com> * 16692 - pre-commits fixed * 16692 - using timetable for showing description * 16692 - pre-commits fixed * Update airflow/timetables/base.py Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> * 16692 - fixed types * 16692 - used Base class for storing common properties * 16692 - using cached_property for description * 16692 - using cached_property for description * 16692 - merge fix * 16692 - removed dagbase * 16692 - removed unnecessary changes * 16692 - test name fixed * 16692 - timetable_description column added to dag table. * 16692 - None timetable description updated * 16692 - tests added * 16692 - review comments. * 16692 - precommit fixes * 16692 - precommit fixes * 16692 - fixed test checks * 16692 - ignoring description computation for 6th param in Cron expression * 16692 - pre-commit fixed * Update airflow/timetables/base.py Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> * 16692 - documentation added for timetable description * 16692 - resolving PR comments * 16692 - precommit fixes * 16692 - documentation fix * 16692 - using empty string as a default description * 16692 - test fixed * [apache#16692] - migration file updated Signed-off-by: Ashish Patel <ashishpatel0720@gmail.com> Co-authored-by: Ryan Hamilton <ryan@ryanahamilton.com> Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Signed-off-by: Ashish Patel <ashishpatel0720@gmail.com>
Signed-off-by: Ashish Patel <ashishpatel0720@gmail.com>
Co-authored-by: Ryan Hamilton <ryan@ryanahamilton.com> Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Description
Users should be able to see a short description of the cron expression when hovering over the expression in a tooltip.
In the above case, the user should see description like At 09:30 PM, only on Friday
Use case / motivation
It will be really easy to get schedule information for the users who are not really great at reading CRON,
even for the experience users CRON can be really complicated at times.
We will create a tooltip component which will evaluate underlying cron and show the description.
Are you willing to submit a PR?
YES
Related Issues
NONE
The text was updated successfully, but these errors were encountered: