-
Notifications
You must be signed in to change notification settings - Fork 216
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
GUI: Improve scheduling section (was: Adding execution time restriction) #1196
Conversation
This allows to execute cron job only during specified hours
This is a big and nice PR. Thank's a lot for that. Please be aware of the discussion in #1232 especially #1232 (comment) . |
Dear @makoehr , Can you also please describe your use case. Why do you need such a restriction? What scheduling options do you use? Note to me:
I converted that into a Draft because it is IMHO a workaround and not a solution. The PR just adding a text field to the GUI. But this PR can be a good start to re-design the Scheduling section of the GUI. There are some cron-related GUI applications around that could stand as a good example about how to represent the cron-concept in a GUI. But to my quick research I don't like most of them because they just move the crontab syntax in a GUI. |
Please find the screenshot attached.
I use e.g. a time period between 6am and 9pm. |
@makoehr Thanks a lot for your really valuable contribution! I suggest
|
Thanks for your feedback.
But what is your schedule setting? What have you selected in the schedule dropdown menu on the first tab? Aryoda: I'm interested in a re-design of the scheduling section. So I take this PR as an inspiration. I have some things in mind. |
Let me add a further question about my approach. In short: I vote to remove the cron part from the GUI (but not from BIT itself). Cron & AnacronI assume most of the readers here do know the difference. But I want to break it down again. The BIT user can say Every 4 Hours resulting in the The BIT user can also say Repeatedly Every 4 Hours resulting in an The first using In short: Represent that in a GUI to the userMy point is that not all users may know or understand the difference between cron and anacron. Even if they understand they shouldn't need to think about it. It is the job of a GUI to abstract that and make it easy to them. Cron & Anacron in the GUIIf we would represent both concepts in a GUI I would modify the terms like his:
I looked up at the difference between "every" and "each". To my understanding "each" do fit better here for the cron part. Anacron only in the GUIIt is IMHO not easy to understand the GUI if cron and anacron are in there. For some users it may result in headaches to figuring out the difference between "each n hour" and "after n hours". To make it easier for the users I would vote to remove (or kind of hide) the cron part of that GUI. Additional settingsBecause of backwards compatibility the cron functionality shouldn't be removed in BIT itself; only in the GUI. I will try to draw a Mockup with QtCreator soon. EDITI learn on bit-dev mailing list that BIT do not use anacron but simulates the anacron behavior. BIT do start itself every 15 minutes and then check the last snapshot execution like anacron would do. This is an important info but do not interfer with my question if we could remove the cron-like scheduling options from the GUI. |
Dear Mathias, I will close this PR because your idea and your input go lives on in #1449 and won't be lost. We plan to completely redesign the schedule section in the GUI. |
This allows to execute cron jobs only within specified hours during a day.