protected static function storeIfDoneProcessingJob($event, $app)
    {
        array_pop(static::$processingJobs);

        if (empty(static::$processingJobs)) {
            static::store($app[EntriesRepository::class]);

            if ($event->connectionName !== 'sync') {
                static::stopRecording();
            }
        }
    }