def working_on(self, job): logger.debug('marking as working on') data = { 'queue': job._queue, 'run_at': str(int(time.mktime(datetime.datetime.now().timetuple()))), 'payload': job._payload } data = json.dumps(data) self.resq.redis["resque:worker:%s" % str(self)] = data logger.debug("worker:%s" % str(self)) logger.debug(self.resq.redis["resque:worker:%s" % str(self)])
def working_on(self, job): print 'marking as working on' data = { 'queue': job._queue, 'run_at': str(datetime.datetime.now()), 'payload': job._payload } data = json.dumps(data) self.resq.redis["resque:worker:%s" % str(self)] = data print "worker:%s" % str(self) print self.resq.redis["resque:worker:%s" % str(self)]
def working_on(self, job): logger.debug("marking as working on") data = { "queue": job._queue, "run_at": str(int(time.mktime(datetime.datetime.now().timetuple()))), "payload": job._payload, } data = json.dumps(data) self.resq.redis["resque:worker:%s" % str(self)] = data logger.debug("worker:%s" % str(self)) logger.debug(self.resq.redis["resque:worker:%s" % str(self)])
def working_on(self, job): logging.debug('marking as working on') data = { 'queue': job._queue, 'run_at': int(time.mktime(datetime.datetime.now().timetuple())), 'payload': job._payload } data = json.dumps(data) self.resq.redis["resque:worker:%s" % str(self)] = data logging.debug("worker:%s" % str(self)) logging.debug(self.resq.redis["resque:worker:%s" % str(self)])