parameters: (ctx)
docstring: Restart whole bare metal deployment
docstring_summary: Restart whole bare metal deployment
docstring_tokens: Restart whole bare metal deployment
function: def restart(ctx):
      """
      Restart whole bare metal deployment
      """
  
      # Flush redis
      _ansible_command("redis", "redis-cli flushall")
  
      # Clear out any function machine code
      _ansible_command("worker", "rm -rf /usr/local/faasm/object")
  
      # Restart the application
      _ansible_command("upload", "sudo supervisorctl restart faasm_upload")
      _ansible_command("worker", "sudo supervisorctl restart faasm_worker")
function_tokens: def restart ( ctx ) : # Flush redis _ansible_command ( "redis" , "redis-cli flushall" ) # Clear out any function machine code _ansible_command ( "worker" , "rm -rf /usr/local/faasm/object" ) # Restart the application _ansible_command ( "upload" , "sudo supervisorctl restart faasm_upload" ) _ansible_command ( "worker" , "sudo supervisorctl restart faasm_worker" )