Skip to content

Commit

Permalink
Merge pull request #16 from utopia-php/feat-get-worker-start
Browse files Browse the repository at this point in the history
get worker start
  • Loading branch information
christyjacob4 authored Oct 16, 2023
2 parents e25f113 + c6fc4a2 commit 0120bd2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Queue/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ public function workerStart(): Hook
return $hook;
}

/**
* Returns Worker starts hook.
* @return Hook
*/
public function getWorkerStart(): Hook
{
return $this->workerStartHook;
}

/**
* Is called when a Worker stops.
* @param callable $callback
Expand Down

0 comments on commit 0120bd2

Please sign in to comment.