def register_death(self):
        self.log.debug('Clearing expired jobs from queues.')
        for q in self.queues:
            q.delete_expired_ttl()
        FlowStore.delete_expired_ttl(q.connection)
        self.log.debug('Registering death')
        self.delete()
Registers its own death deleting the instance
dataset/ETHPy150Open bretth/django-pq/pq/worker.py/Worker.register_death