protected function configureEvent($event, array $definition)
    {
        if (isset($definition['cron'])) {
            $event->cron($definition['cron']);
        }

        if (isset($definition['singleton']) && $definition['singleton']) {
            $event->onOneServer();
        }

        if (isset($definition['mutex']) && $definition['mutex']) {
            $event->withoutOverlapping();
        }
    }