In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ]  Related Changesets ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001341 [In-Portal CMS] Admin Interfaces feature request always 2012-07-09 11:09 2012-07-25 05:29
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.2.0
Status closed Product Version 5.0.0 Target Version 5.2.0
Time EstimateNo estimate
Summary 0001341: Create cron-like interface for scheduled tasks
Description 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.
Additional Information Attached screenshot of Cron Manager for cPanel. Live demo:

url: http://x3demob.cpx3demo.com:2082/frontend/x3/cron/index.html
user: x3demob
password: x3demob
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion
Change Log Message Changed scheduled task run interval specification
Estimate Points 1
Attached Files png file icon Capture d’écran 2011-06-13 à 08.37.21.png [^] (129,973 bytes) 2012-07-09 11:11


patch file icon schedule_tasks_cron_interface_core.patch [^] (60,578 bytes) 2012-07-12 09:47 [Show Content]
patch file icon schedule_tasks_cron_interface_modules.patch [^] (4,808 bytes) 2012-07-12 09:47 [Show Content]
patch file icon schedule_tasks_cron_interface_core_upgrade_addon.patch [^] (2,206 bytes) 2012-07-16 06:20 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
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 

-  Notes
User avatar (0004766)
alex (manager)
2012-07-12 09:49

Will test all together later.
User avatar (0004767)
alex (manager)
2012-07-12 09:51

Fix committed to 5.2.x branch. Commit Message:

Fixes 0001341: Create cron-like interface for scheduled tasks
User avatar (0004768)
alex (manager)
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.
User avatar (0004786)
alex (manager)
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.
User avatar (0004835)
alex (manager)
2012-07-25 05:29

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r15449
Timestamp: 2012-07-16 06:22:24
Author: alex
Details ] Diff ]
Bug 0001341: Create cron-like interface for scheduled tasks
mod - /in-portal/branches/5.2.x/core/install/upgrades.php Diff ] File ]
In-Portal CMS: 5.2.x r15433
Timestamp: 2012-07-12 09:51:05
Author: alex
Details ] Diff ]
Fixes 0001341: Create cron-like interface for scheduled tasks
mod - /in-portal/branches/5.2.x/admin/system_presets/simple/scheduled_tasks_scheduled-task.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/admin_templates/incs/form_blocks.tpl Diff ] File ]
add - /in-portal/branches/5.2.x/core/admin_templates/js/cron.js File ]
mod - /in-portal/branches/5.2.x/core/admin_templates/scheduled_tasks/scheduled_task_edit.tpl Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/english.lang Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/install_schema.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/upgrades.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/application.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/event_manager.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/languages/phrases_cache.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/managers/scheduled_task_manager.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/utility/unit_config_reader.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/admin/admin_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/forms/forms/forms_config.php Diff ] File ]
add - /in-portal/branches/5.2.x/core/units/helpers/cron_helper.php File ]
mod - /in-portal/branches/5.2.x/core/units/helpers/helpers_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/images/images_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/logs/email_logs/email_logs_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/mailing_lists/mailing_lists_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/scheduled_tasks/scheduled_task_eh.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/scheduled_tasks/scheduled_tasks_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/users/users_config.php Diff ] File ]
Modules :: In-News: 5.2.x r15432
Timestamp: 2012-07-12 09:50:16
Author: alex
Details ] Diff ]
Bug 0001341: Create cron-like interface for scheduled tasks
mod - /modules/in-news/branches/5.2.x/units/articles/articles_config.php Diff ] File ]
Modules :: In-Link: 5.2.x r15431
Timestamp: 2012-07-12 09:50:01
Author: alex
Details ] Diff ]
Bug 0001341: Create cron-like interface for scheduled tasks
mod - /modules/in-link/branches/5.2.x/units/link_validation/link_validation_config.php Diff ] File ]
mod - /modules/in-link/branches/5.2.x/units/listings/listings_config.php Diff ] File ]

- Issue History
Date Modified Username Field Change
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 View Revisions
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



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker