We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2162818 + 955652f commit b5004adCopy full SHA for b5004ad
1 file changed
src/Tasker2/Manager.php
@@ -52,6 +52,15 @@ public function run()
52
->updateStatus();
53
}
54
55
+ /**
56
+ * Set how many tasks to fetch per run
57
+ * @param $limit int
58
+ */
59
+ public function setFetchLimit($limit)
60
+ {
61
+ $this->limit = (int) $limit;
62
+ }
63
+
64
private function getReservedTasks()
65
{
66
$this->tasks = $this->taskRepository->findReserved($this->limit);
0 commit comments