Skip to content

Commit 2651c28

Browse files
authored
Merge pull request #52 from mirko-bukilic/master
Added method for deleting processed tasks
2 parents 4c19769 + aa6145a commit 2651c28

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/Manager.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,16 @@ private function runTasks()
229229
->writeLog();
230230
}
231231

232+
/**
233+
* @param int $olderThan
234+
* @param int $limit
235+
* @return void
236+
*/
237+
public function deleteProcessedTasks($olderThan, $limit)
238+
{
239+
$this->taskRepository->deleteProcessedTasks($olderThan, $limit);
240+
}
241+
232242
private function writeLog()
233243
{
234244
echo 'Started: ' . date(self::TIME_FORMAT, $this->getTimerStart()) . "\n";

0 commit comments

Comments
 (0)