public function delete(JobDescription $job)
    {
        if ($this->debug) {
            return 0;
        }

        if (!$job->isFutureJob()) {
            return 0;
        }

        return \ResqueScheduler::removeDelayedJobFromTimestamp($job->getWhen(), $job->getQueue(), $job->getClass(),
            $job->getArgs(), $job->getTrackStatus());
    }
public function delete(JobDescription $job)
    {
        if ($this->debug) {
            return 0;
        }

        if (!$job->isFutureJob()) {
            return 0;
        }

        return \ResqueScheduler::removeDelayedJobFromTimestamp($job->getWhen(), $job->getQueue(), $job->getClass(),
            $job->getArgs(), $job->getTrackStatus());
    }
public function delete ( JobDescription $ job ) { if ( $ this -> debug ) { return 0 ; } if ( ! $ job -> isFutureJob ( ) ) { return 0 ; } return \ ResqueScheduler :: removeDelayedJobFromTimestamp ( $ job -> getWhen ( ) , $ job -> getQueue ( ) , $ job -> getClass ( ) , $ job -> getArgs ( ) , $ job -> getTrackStatus ( ) ) ; }
Remove a scheduled job.

@param JobDescription $job

@return int number of deleted jobs
Remove a scheduled job .