public function handle()
    {
        $this->parseArguments();

        $tube = $this->argument('tube') ?: $this->defaultTube;

        $exported = 0;
        while ($job = $this->peekJob($tube, $this->state)) {
            if ($this->count > 0 && $exported >= $this->count) {
                break;
            }

            $this->exportJob($job);

            $this->deleteJob($job);

            $exported++;
        }

        if (0 == $exported) {
            $this->renderJobNotFoundMessage($tube, $this->state);
        } else {
            $this->comment("Exported $exported jobs from '$tube' tube in '$this->state' state.");
        }
    }
public function handle()
    {
        $this->parseArguments();

        $tube = $this->argument('tube') ?: $this->defaultTube;

        $exported = 0;
        while ($job = $this->peekJob($tube, $this->state)) {
            if ($this->count > 0 && $exported >= $this->count) {
                break;
            }

            $this->exportJob($job);

            $this->deleteJob($job);

            $exported++;
        }

        if (0 == $exported) {
            $this->renderJobNotFoundMessage($tube, $this->state);
        } else {
            $this->comment("Exported $exported jobs from '$tube' tube in '$this->state' state.");
        }
    }
{@inheritdoc}