---- Reported by nengard@gmail.com 2009-12-16 00:45:11 ---- It would be nice to set the task scheduler to run a report periodically at a specific time - instead of just once --- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:21 UTC --- This bug was previously known as _bug_ 3935 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3935 Actual time not defined. Setting to 0.0
This is still true right? I certainly can't see any way to schedule recurring tasks via the staff client yet...
Hi, I would like this to be of higher importance. There should be two options, one to make one scheduled run and the other to run periodically. So we could have weekly, monthly or yearly statistics for example.
Hi, the main problem is bug 1993, that needs to be resolved first. Please understand that this will need funding and/or resources in order to move forward.
Created attachment 135083 [details] [review] 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
(In reply to Katrin Fischer from comment #3) > Hi, the main problem is bug 1993, that needs to be resolved first. Please > understand that this will need funding and/or resources in order to move > forward. I just noticed this comment and the dependent Bug 1993 and I agree with what is discussed there. I'll leave the above patch here in case anyone finds it useful, but Bug 1993 seems like the correct way to go.
(In reply to Lari Taskula from comment #5) > (In reply to Katrin Fischer from comment #3) > > Hi, the main problem is bug 1993, that needs to be resolved first. Please > > understand that this will need funding and/or resources in order to move > > forward. > > I just noticed this comment and the dependent Bug 1993 and I agree with what > is discussed there. I'll leave the above patch here in case anyone finds it > useful, but Bug 1993 seems like the correct way to go. That's cool! However, it's unlikely that I'll ever work on it at my day job, and I haven't been doing much Koha coding at night since 2020.
Created attachment 135084 [details] [review] 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
Created attachment 135085 [details] [review] 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
+1
From the outside, this seems like such a basic piece of functionality that would be incredibly useful to so many libraries. +1 x however many times my vote will be counted :-)
And bug 7972 would be at least a step towards this desired functionality. A related bug 24968 does explain the development is not yet funded. I so wish we had some funds to commit to this...
*** Bug 39063 has been marked as a duplicate of this bug. ***