modify
This commit is contained in:
@@ -8,7 +8,6 @@ use Exception;
|
|||||||
use Snowflake\Event;
|
use Snowflake\Event;
|
||||||
use Snowflake\Process\Process;
|
use Snowflake\Process\Process;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
use Swoole\Coroutine;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -34,8 +33,6 @@ class Consumer extends Process
|
|||||||
|
|
||||||
$crontab = swoole_unserialize($redis->get($value));
|
$crontab = swoole_unserialize($redis->get($value));
|
||||||
$redis->del($value);
|
$redis->del($value);
|
||||||
|
|
||||||
var_dump($crontab);
|
|
||||||
if (!is_object($crontab)) {
|
if (!is_object($crontab)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -200,8 +200,8 @@ class Crontab extends BaseObject
|
|||||||
public function execute(): void
|
public function execute(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$result = call_user_func($this->handler, $this->params, $this->name);
|
// $result = call_user_func($this->handler, $this->params, $this->name);
|
||||||
var_dump($result);
|
var_dump(($this->handler)($this->params, $this->name));
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
$this->addError($throwable->getMessage());
|
$this->addError($throwable->getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user