Skip to content

Commit 0120bd2

Browse files
Merge pull request #16 from utopia-php/feat-get-worker-start
get worker start
2 parents e25f113 + c6fc4a2 commit 0120bd2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Queue/Server.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,15 @@ public function workerStart(): Hook
332332
return $hook;
333333
}
334334

335+
/**
336+
* Returns Worker starts hook.
337+
* @return Hook
338+
*/
339+
public function getWorkerStart(): Hook
340+
{
341+
return $this->workerStartHook;
342+
}
343+
335344
/**
336345
* Is called when a Worker stops.
337346
* @param callable $callback

0 commit comments

Comments
 (0)