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 ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001339 [In-Portal CMS] Data Management bug report always 2012-07-09 10:45 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 0001339: Long running scheduled task delays page loading
Description Administrator can set scheduled tasks to be executed:
* in cron;
* after page load.

In later case long running scheduled task delays actual page content from being sent to user, who requested a page.

To solve this we need to place following code after page content has been sent to user (but before scheduled task execution is started):

ignore_user_abort(true);

while ( ob_get_level() ) {
    ob_end_clean();
}

header('Connection: close');
// header('Content-Length: 0'); // only uncomment when such header isn't sent already
flush();

This code will do following:
1. web browser "Loading ..." indicator should show 100%
2. connection to webserver will be terminated
3. reset of the script will continue to execute on the server
Additional Information
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion
Change Log Message Fixing page load delay because of long running scheduled task
Estimate Points 1
Attached Files patch file icon cron_close_connection_early.patch [^] (1,353 bytes) 2012-07-17 09:50 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to 0001191closed (5.2.0)alex Remove RunMode from Scheduled Tasks 
parent of 0001356closed (5.2.0)alex Enable output compression by default 
parent of 0001380resolved (5.2.1)alex Notice on every page with debugger 
related to 0000981closed (5.2.0)Dmitry Rename Agents section to "Scheduled Tasks" 
related to 0001340closed (5.2.0)alex Don't use session in scheduled tasks 
related to 0001341closed (5.2.0)alex Create cron-like interface for scheduled tasks 

-  Notes
User avatar (0004794)
alex (manager)
2012-07-17 09:51

Will test all together later.
User avatar (0004795)
alex (manager)
2012-07-17 09:54

Fix committed to 5.2.x branch. Commit Message:

Fixes 0001339: Long running scheduled task delays page loading
User avatar (0004832)
alex (manager)
2012-07-25 05:29

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r15457
Timestamp: 2012-07-17 09:54:32
Author: alex
Details ] Diff ]
Fixes 0001339: Long running scheduled task delays page loading
mod - /in-portal/branches/5.2.x/core/kernel/application.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/managers/scheduled_task_manager.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-08-20 08:54 alex Relationship added parent of 0001380
2012-07-25 05:29 alex Note Added: 0004832
2012-07-25 05:29 alex Status resolved => closed
2012-07-17 09:59 alex Relationship added parent of 0001356
2012-07-17 09:54 alex Note Added: 0004795
2012-07-17 09:54 alex Status reviewed and tested => resolved
2012-07-17 09:54 alex Fixed in Version => 5.2.0
2012-07-17 09:54 alex Resolution open => fixed
2012-07-17 09:54 alex Assigned To !COMMUNITY => alex
2012-07-17 09:54 alex Changeset attached 5.2.x r15457
2012-07-17 09:51 alex Note Added: 0004794
2012-07-17 09:51 alex Status needs testing => reviewed and tested
2012-07-17 09:51 alex Assigned To => !COMMUNITY
2012-07-17 09:51 alex Developer => alex
2012-07-17 09:51 alex Status active => needs testing
2012-07-17 09:50 alex File Added: cron_close_connection_early.patch
2012-07-09 11:10 alex Relationship added related to 0001341
2012-07-09 11:03 alex Relationship added related to 0001340
2012-07-09 10:51 alex Relationship added related to 0000981
2012-07-09 10:50 alex Relationship added related to 0001191
2012-07-09 10:48 alex Description Updated View Revisions
2012-07-09 10:45 alex New Issue
2012-07-09 10:45 alex Reference => https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion
2012-07-09 10:45 alex Change Log Message => Fixing page load delay because of long running scheduled task
2012-07-09 10:45 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