original_docstring: Kill all celery beat workers.
      Note: In the future, it would be more elegant to use a process manager like
      supervisor or forever.
      
docstring: Kill all celery beat workers.
  Note: In the future, it would be more elegant to use a process manager like
  supervisor or forever.
docstring_tokens: Kill all celery beat workers . Note : In the future it would be more elegant to use a process manager like supervisor or forever .
code: def stop_beat():
      """Kill all celery beat workers.
      Note: In the future, it would be more elegant to use a process manager like
      supervisor or forever.
      """
      return subprocess.Popen(
          "ps aux | grep 'cron.py' | awk '{print $2}' | xargs kill -9",
          shell=True,
      )
code_tokens: def stop_beat ( ) : return subprocess . Popen ( "ps aux | grep 'cron.py' | awk '{print $2}' | xargs kill -9" , shell = True , )
short_docstring: Kill all celery beat workers.
short_docstring_tokens: Kill all celery beat workers .
comment: """Kill all celery beat workers.
      Note: In the future, it would be more elegant to use a process manager like
      supervisor or forever.
      """