Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Apr 12, 2016
2 parents e2d0567 + 8566322 commit 73ee9be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ phpunit --bootstrap craft/app/tests/bootstrap.php --configuration craft/plugins/

Changelog
=================
###0.4.2###
- Fixed bug with reading default config values

###0.4.1###
- Added the ability to control the watch interval via the `taskInterval` config setting

Expand Down
2 changes: 1 addition & 1 deletion TaskManagerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getDescription()
*/
public function getVersion()
{
return '0.4.1';
return '0.4.2';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion consolecommands/TaskManagerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function actionWatch()
craft()->tasks->runPendingTasks();

// Sleep a little
sleep(craft()->config->get('taskInterval'));
sleep(craft()->config->get('taskInterval', 'taskManager'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion controllers/TaskManagerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function actionRerunAllFailedTasks()
->where(array('and', 'lft = 1', 'status = :status'), array(':status' => TaskStatus::Error));

// Get all hanging? tasks
if ($timeout = craft()->config->get('taskTimeout')) {
if ($timeout = craft()->config->get('taskTimeout', 'taskManager')) {
$query->orWhere(array('and', 'lft = 1', 'dateCreated < (NOW() - INTERVAL :seconds SECOND)'), array(':seconds' => $timeout));
}

Expand Down

0 comments on commit 73ee9be

Please sign in to comment.