protected function getWorkerConfig($key = null)
{
/** @var AbstractWorker $class */
if (null === static::$workerConfig) {
$class = $this->workerClass;
static::$workerConfig = $class::getConfig();
}
return null === $key ? static::$workerConfig : static::$workerConfig[$key];
}