Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847779
D148.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Apr 19, 5:41 PM
Size
724 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 5:41 PM (16 m, 27 s)
Engine
blob
Format
Raw Data
Handle
602571
Attached To
D148: INP-1496 - Don't initialize "scheduled-task" unit during installation
D148.diff
View Options
Index: branches/5.2.x/core/units/scheduled_tasks/scheduled_task_eh.php
===================================================================
--- branches/5.2.x/core/units/scheduled_tasks/scheduled_task_eh.php
+++ branches/5.2.x/core/units/scheduled_tasks/scheduled_task_eh.php
@@ -289,10 +289,15 @@
{
parent::OnAfterConfigRead($event);
+ // Don't initialize 'scheduled-task' unit, because scheduled tasks are not run during install.
+ if ( defined('IS_INSTALL') && IS_INSTALL ) {
+ return;
+ }
+
$cron_helper = $this->Application->recallObject('kCronHelper');
/* @var $cron_helper kCronHelper */
$cron_helper->initUnit($event->Prefix, 'RunSchedule');
}
- }
\ No newline at end of file
+ }
Event Timeline
Log In to Comment