This commit is contained in:
2021-02-26 19:53:28 +08:00
parent cd3ed6937c
commit 6e3ecce453
4 changed files with 46 additions and 7 deletions
+3
View File
@@ -6,6 +6,7 @@ namespace HttpServer\Events;
use Exception;
use HttpServer\Abstracts\Callback;
use Snowflake\Snowflake;
use Swoole\Server;
/**
@@ -25,6 +26,8 @@ class OnFinish extends Callback
$data = json_decode($data, true);
$data['work_id'] = $task_id;
$this->write(var_export($data, true), 'Task');
Snowflake::app()->decrement();
}
}