addons14/queue_job/models/queue_job.py
def autovacuum(self):
        """Delete all jobs done based on the removal interval defined on the
           channel

        Called from a cron.
        """
        for channel in self.env["queue.job.channel"].search([]):
            deadline = datetime.now() - timedelta(days=int(channel.removal_interval))
            jobs = self.search(
                [("date_done", "<=", deadline), ("channel", "=", channel.complete_name)]
            )
            if jobs:
                jobs.unlink()
        return True
Delete all jobs done based on the removal interval defined on the
           channel

        Called from a cron.
        
Delete all jobs done based on the removal interval defined on the
channel

Called from a cron.
Delete all jobs done based on the removal interval defined on the channel Called from a cron .
def autovacuum(self):
        for channel in self.env["queue.job.channel"].search([]):
            deadline = datetime.now() - timedelta(days=int(channel.removal_interval))
            jobs = self.search(
                [("date_done", "<=", deadline), ("channel", "=", channel.complete_name)]
            )
            if jobs:
                jobs.unlink()
        return True
def autovacuum ( self ) : for channel in self . env [ "queue.job.channel" ] . search ( [ ] ) : deadline = datetime . now ( ) - timedelta ( days = int ( channel . removal_interval ) ) jobs = self . search ( [ ( "date_done" , "<=" , deadline ) , ( "channel" , "=" , channel . complete_name ) ] ) if jobs : jobs . unlink ( ) return True
Delete all jobs done based on the removal interval defined on the
channel
Delete all jobs done based on the removal interval defined on the channel
"""Delete all jobs done based on the removal interval defined on the
           channel

        Called from a cron.
        """
self