[Koha-bugs] [Bug 3935] Schedule tasks periodically
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 18 03:35:09 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3935
Lari Taskula <lari.taskula at hypernova.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #135084|0 |1
is obsolete| |
--- Comment #8 from Lari Taskula <lari.taskula at hypernova.fi> ---
Created attachment 135085
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135085&action=edit
Bug 3935: Add support for recurring scheduled tasks
Tools->Task scheduler lacked the ability to repeatedly execute tasks.
This patch adds such functionality.
It adds a new parameter "--recurring" to misc/cronjobs/runreport.pl
After runreport.pl is executed and if --recurring is provided, we will now
schedule a new task with the same parameters.
To test:
1. Navigate to Tools->Task scheduler
2. Observe there is nothing that allows you to repeatedly execute the task
3. Apply patch
4. Refresh Tools->Task scheduler page
5. Observe new field "Recurring every" ... "minutes/hours/days..."
6. Check current server time
7. Add current server time + 1 minute to "Time" field
8. Add "1 minutes" to "Recurring every" field
9. Select a saved report (if you don't have one, create a new one)
10. Add your email address to "Email"
11. Click "Save"
12. Observe new row at "Jobs already entered" section and note down given
datetime
13. Wait one minute
14. Refresh Tools->Task scheduler page
15. Observe updated row at "Jobs already entered" section, it should now
have datetime + 1 minute of what you observed at step 12
--
You are receiving this mail because:
You are watching all bug changes.
You are the QA Contact for the bug.
More information about the Koha-bugs
mailing list