aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php
blob: 450b71ffdfcb2a554370a09fa193ad08cc888337 (plain) (tree)
1
2
3
4
5
6
7
8
9

     
                                         
 
                     
 
                                                                
 
       




                                                                      
       
                                
     
                                          








                                                         

     
<?php

namespace Wallabag\ImportBundle\Consumer;

use Simpleue\Job\Job;

class RedisEntryConsumer extends AbstractConsumer implements Job
{
    /**
     * Handle one message by one message.
     *
     * @param string $job Content of the message (directly from Redis)
     *
     * @return bool
     */
    public function manage($job)
    {
        return $this->handleMessage($job);
    }

    /**
     * Should tell if the given job will kill the worker.
     * We don't want to stop it :).
     */
    public function isStopJob($job)
    {
        return false;
    }
}