@task
@timed
def check_mysql():
 if (not is_mysql_running()):
  msg = colorize('red', 'MySQL is not running locally.')
  print msg
  sys.exit(1)

@ task @ timed def check_mysql ( ) : if ( not is_mysql_running ( ) ) : msg = colorize ( 'red' , 'MySQL is not running locally.' ) print msg sys . exit ( 1 )
check that mysql is running .