add kill task to save time and disk space (alternative to stop task)

This commit is contained in:
Felix Lohmeier 2021-02-25 13:01:20 +01:00
parent 201e838d17
commit 080ccc27f3
2 changed files with 7 additions and 1 deletions

View File

@ -129,7 +129,6 @@ Please file an [issue](https://github.com/opencultureconsulting/openrefine-task-
## To do
- [ ] hide OpenRefine install by renaming directory to .openrefine
- [ ] add kill task to save time by skipping storing an OpenRefine project archive
- [ ] differentiate examples
- [ ] example for loading multiple input files by providing a zip archive
- [ ] example for download "fresh" input data as a dependent task and generating archives/diffs

View File

@ -83,6 +83,13 @@ tasks:
.
- rm -rf ./*.project* workspace.json # delete temporary files
kill:
dir: ./{{.DIR}}
cmds:
- | # shut down OpenRefine immediately to save time and disk space
kill -9 $(lsof -t -i:{{.PORT}})
- rm -rf ./*.project* workspace.json # delete temporary files
check:
desc: check OpenRefine log for any warnings and exit on error
dir: ./{{.DIR}}