Skip to content

Instantly share code, notes, and snippets.

@xman1980
Created June 9, 2017 08:37
Show Gist options
  • Select an option

  • Save xman1980/5e892475dc5872212bc093f5e777cb0c to your computer and use it in GitHub Desktop.

Select an option

Save xman1980/5e892475dc5872212bc093f5e777cb0c to your computer and use it in GitHub Desktop.
kill-all-yarn-jobs
for app in $(yarn application -list | awk '$6 == "RUNNING" { print $1 }')
do
echo "killing $app ...";
yarn application -kill "$app";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment