public function mainLoop()
    {
        $bootstrap = $this->config->get('bootstrap');
        if ($bootstrap) {
            (function () {
                require $this->config->get('bootstrap');
            })();
        }
        $this->logger->info("Ajumamoro");
        set_error_handler(
            function ($no, $message, $file, $line) {
                $this->logger->error(
                    "Job #{$this->currentJobId} Error: $message on line $line of $file"
                );
            },
            E_WARNING
        );

        // Get Store;
        $delay = $this->config->get('delay', 200);

        do {
            $job = $this->getNextJob();

            if ($job !== false) {
                $this->executeJob($job);
            } else {
                usleep($delay);
            }
        } while (true);
    }