mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
feat: refactor
This commit is contained in:
1 parent
92706045ad
commit
ebc55e7e8e
5 files changed
+63
-178
No files matched your search
@@ -45,7 +45,7 @@ abstract class Worker
|
||||
* @throws \Exception|\Throwable
|
||||
*/
|
||||
public function init() {
|
||||
throw new Exception("Please implement getName method in worker");
|
||||
throw new Exception("Please implement init method in worker");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -56,7 +56,7 @@ abstract class Worker
|
||||
* @throws \Exception|\Throwable
|
||||
*/
|
||||
public function run() {
|
||||
throw new Exception("Please implement getName method in worker");
|
||||
throw new Exception("Please implement run method in worker");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -67,7 +67,7 @@ abstract class Worker
|
||||
* @throws \Exception|\Throwable
|
||||
*/
|
||||
public function shutdown() {
|
||||
throw new Exception("Please implement getName method in worker");
|
||||
throw new Exception("Please implement shutdown method in worker");
|
||||
}
|
||||
|
||||
const MAX_ATTEMPTS = 10;
|
||||
|
||||
Reference in new issue
Block a user