Beispiel #1
0
    def run(self, params):

        log.info("Retrying in %s on %s" %
                 (params.get("delay"), params.get("queue")))

        connections.mongodb_jobs.tests_inserts.insert(params)

        retry_current_job(queue=params.get("queue"),
                          delay=params.get("delay"),
                          max_retries=params.get("max_retries"))

        raise Exception("Should not be reached")
Beispiel #2
0
  def run(self, params):

    log.info("Retrying in %s on %s" % (params.get("countdown"), params.get("queue")))

    connections.mongodb_logs.tests_inserts.insert(params)

    if params.get("cancel_on_retry"):
      self.cancel_on_retry = params.get("cancel_on_retry")

    retry_current_job(queue=params.get("queue"), countdown=params.get("countdown"))

    raise Exception("Should not be reached")
Beispiel #3
0
    def run(self, params):

        log.info("Retrying in %s on %s" %
                 (params.get("delay"), params.get("queue")))

        connections.mongodb_jobs.tests_inserts.insert(params)

        retry_current_job(
            queue=params.get("queue"),
            delay=params.get("delay"),
            max_retries=params.get("max_retries")
        )

        raise Exception("Should not be reached")
Beispiel #4
0
    def run(self, params):
        connections.mongodb_jobs.tests_inserts.insert(params)

        retry_current_job()

        raise Exception("Should not be reached")
Beispiel #5
0
    def run(self, params):
        connections.mongodb_jobs.tests_inserts.insert(params)

        retry_current_job()

        raise Exception("Should not be reached")