addons14/queue_job/controllers/main.py
def _try_perform_job(self, env, job):
        """Try to perform the job."""
        job.set_started()
        job.store()
        env.cr.commit()
        _logger.debug("%s started", job)

        job.perform()
        job.set_done()
        job.store()
        env["base"].flush()
        env.cr.commit()
        _logger.debug("%s done", job)
Try to perform the job.
Try to perform the job.
Try to perform the job .
def _try_perform_job(self, env, job):
        job.set_started()
        job.store()
        env.cr.commit()
        _logger.debug("%s started", job)
        job.perform()
        job.set_done()
        job.store()
        env["base"].flush()
        env.cr.commit()
        _logger.debug("%s done", job)
def _try_perform_job ( self , env , job ) : job . set_started ( ) job . store ( ) env . cr . commit ( ) _logger . debug ( "%s started" , job ) job . perform ( ) job . set_done ( ) job . store ( ) env [ "base" ] . flush ( ) env . cr . commit ( ) _logger . debug ( "%s done" , job )
Try to perform the job.
Try to perform the job .
"""Try to perform the job."""
self
env
job