code: def force_stop(self):
          
          r = self.local_renderer
          with self.settings(warn_only=True):
              r.sudo('pkill -9 -f celery')
          r.sudo('rm -f /tmp/celery*.pid')
docs: Forcibly terminates all Celery processes.