Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

Commit

Permalink
Forgot to include to facilitate identifying the tasks, a reference fi…
Browse files Browse the repository at this point in the history
…eld has been added to the queued_tasks table which is now the 5th parameter of the QueuedTask::createJob() method
  • Loading branch information
Neil Crookes committed Apr 14, 2010
1 parent 6b0af6f commit aaeeff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/queued_task.php
Expand Up @@ -26,12 +26,13 @@ class QueuedTask extends AppModel {
* @param string $reference any array
* @return bool success
*/
public function createJob($jobName, $data, $notBefore = null, $group = null) {
public function createJob($jobName, $data, $notBefore = null, $group = null, $reference = null) {

$data = array(
'jobtype' => $jobName,
'data' => serialize($data),
'group' => $group,
'reference' => $reference,
);
if ($notBefore != null) {
$data['notbefore'] = date('Y-m-d H:i:s', strtotime($notBefore));
Expand Down

0 comments on commit aaeeff3

Please sign in to comment.