Skip to content

Instantly share code, notes, and snippets.

@georgeliaw
Last active March 26, 2018 18:28
Show Gist options
  • Save georgeliaw/cecfa9b476115e7bea19b00336e9ab99 to your computer and use it in GitHub Desktop.
Save georgeliaw/cecfa9b476115e7bea19b00336e9ab99 to your computer and use it in GitHub Desktop.
yarn list running job application IDs
#!/bin/bash
for i in $(yarn application -list | grep application_ | awk '{print $1}'); do echo $i; done
# kill all by swapping echo to `yarn application -kill $i`
# for i in $(yarn application -list | grep application_ | awk '{print $1}'); do yarn application -kill $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment