From 080ccc27f3845998929ff26fdbfa4337fd316277 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Thu, 25 Feb 2021 13:01:20 +0100 Subject: [PATCH] :sparkles: add kill task to save time and disk space (alternative to stop task) --- README.md | 1 - Taskfile.yml | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5772a37..d34fe3d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Taskfile.yml b/Taskfile.yml index b129b09..15a84a1 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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}}