]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Consumer/RedisEntryConsumer.php
Jump to Simpleue 2.0
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Consumer / RedisEntryConsumer.php
index 450b71ffdfcb2a554370a09fa193ad08cc888337..862d0c43cee1d77bbee944405e717deaaba3e24f 100644 (file)
@@ -21,9 +21,26 @@ class RedisEntryConsumer extends AbstractConsumer implements Job
     /**
      * Should tell if the given job will kill the worker.
      * We don't want to stop it :).
+     *
+     * @param string $job Content of the message (directly from Redis)
+     *
+     * @return false
      */
     public function isStopJob($job)
     {
         return false;
     }
+
+    /**
+     * This abstract method is only used when we use one queue for multiple job type.
+     * We don't do that, so we'll always return true.
+     *
+     * @param string $job Content of the message (directly from Redis)
+     *
+     * @return true
+     */
+    public function isMyJob($job)
+    {
+        return true;
+    }
 }