In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1341 [In-Portal CMS] Admin Interfaces feature request always 2012-07-09 11:09 2012-07-25 05:29
alex  
alex  
normal  
closed 5.0.0  
fixed  
 
none 5.2.0  
https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion
Changed scheduled task run interval specification
1
0001341: Create cron-like interface for scheduled tasks
Field "Run Interval" of scheduled tasks doesn't seem to be pretty handy, since it doesn't allow to specify exact time when a scheduled task should be executed.

I'm proposing to use native crontab format: http://en.wikipedia.org/wiki/Cron , where it has 5 numbers:
min (0 - 59)
hour (0 - 23)
day of month (1 - 31)
month (1 - 12)
day of week (0 - 7) (Sunday=0 or 7)
For example "0 * * * *" will mean, that job should be executed every hour. And "*/5 * * * *" will mean to run this job every 5 minutes. This is way better, then specifying seconds on every corner.

We also need to create fancy control with 5 input boxes or so to ease input process.
Attached screenshot of Cron Manager for cPanel. Live demo:

url: http://x3demob.cpx3demo.com:2082/frontend/x3/cron/index.html
user: x3demob
password: x3demob
related to 0001340closed  (5.2.0)alex Don't use session in scheduled tasks 
related to 0000981closed  (5.2.0)Dmitry Rename Agents section to "Scheduled Tasks" 
related to 0001339closed  (5.2.0)alex Long running scheduled task delays page loading 
related to 0001191closed  (5.2.0)alex Remove RunMode from Scheduled Tasks 
parent of 0001353closed  (5.2.0)alex More forms to plural phrase function 
related to 0001354closed  (5.2.0)alex Minor fixes to form blocks 
png Capture d’écran 2011-06-13 à 08.37.21.png (129,973) 2012-07-09 11:11
http://tracker.in-portal.org/file_download.php?file_id=1725&type=bug
png

patch schedule_tasks_cron_interface_core.patch (60,578) 2012-07-12 09:47
http://tracker.in-portal.org/file_download.php?file_id=1733&type=bug
patch schedule_tasks_cron_interface_modules.patch (4,808) 2012-07-12 09:47
http://tracker.in-portal.org/file_download.php?file_id=1734&type=bug
patch schedule_tasks_cron_interface_core_upgrade_addon.patch (2,206) 2012-07-16 06:20
http://tracker.in-portal.org/file_download.php?file_id=1748&type=bug
Issue History
2012-07-25 05:29 alex Note Added: 0004835
2012-07-25 05:29 alex Status resolved => closed
2012-07-16 06:22 alex Changeset attached 5.2.x r15449
2012-07-16 06:22 alex Note Added: 0004786
2012-07-16 06:20 alex File Added: schedule_tasks_cron_interface_core_upgrade_addon.patch
2012-07-12 09:54 alex Note Added: 0004768
2012-07-12 09:51 alex Changeset attached 5.2.x r15433
2012-07-12 09:51 alex Note Added: 0004767
2012-07-12 09:51 alex Status reviewed and tested => resolved
2012-07-12 09:51 alex Fixed in Version => 5.2.0
2012-07-12 09:51 alex Resolution open => fixed
2012-07-12 09:51 alex Assigned To !COMMUNITY => alex
2012-07-12 09:50 alex Changeset attached 5.2.x r15432
2012-07-12 09:50 alex Changeset attached 5.2.x r15431
2012-07-12 09:49 alex Changeset attached 5.2.x r15430
2012-07-12 09:49 alex Note Added: 0004766
2012-07-12 09:49 alex Status needs testing => reviewed and tested
2012-07-12 09:47 alex Assigned To => !COMMUNITY
2012-07-12 09:47 alex Developer => alex
2012-07-12 09:47 alex Status active => needs testing
2012-07-12 09:47 alex File Added: schedule_tasks_cron_interface_modules.patch
2012-07-12 09:47 alex File Added: schedule_tasks_cron_interface_core.patch
2012-07-12 09:03 alex Relationship added related to 0001354
2012-07-12 08:59 alex Relationship added parent of 0001353
2012-07-09 11:12 alex Additional Information Updated bug_revision_view_page.php?rev_id=1025#r1025
2012-07-09 11:11 alex File Added: Capture d’écran 2011-06-13 à 08.37.21.png
2012-07-09 11:10 alex Relationship added related to 0001191
2012-07-09 11:10 alex Relationship added related to 0001339
2012-07-09 11:09 alex Relationship added related to 0000981
2012-07-09 11:09 alex Relationship added related to 0001340
2012-07-09 11:09 alex New Issue
2012-07-09 11:09 alex Reference => https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion
2012-07-09 11:09 alex Change Log Message => Changed scheduled task run interval specification
2012-07-09 11:09 alex Estimate Points => 1

Notes
(0004766)
alex   
2012-07-12 09:49   
Will test all together later.
(0004767)
alex   
2012-07-12 09:51   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001341: Create cron-like interface for scheduled tasks
(0004768)
alex   
2012-07-12 09:54   
I've also discovered and fixed bug, that caused new scheduled tasks to have "NextRunOn" field set to NOW instead of value calculated according to their run interval/schedule.
(0004786)
alex   
2012-07-16 06:22   
Patch "schedule_tasks_cron_interface_core_upgrade_addon.patch" adding upgrade script, that converts value of RunInterval column into RunSchedule column.
(0004835)
alex   
2012-07-25 05:29   
Since 5.2.0 version was released.