left note about deleting remote dir on remove jobs

This commit is contained in:
Jaromil 2019-01-28 15:55:16 +01:00
parent 420b230978
commit f77763887c
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,9 @@
[jobid (s/param request :jobid)
jobfound (db/query @ring/jobs {:jobid jobid})
r_rmjob (db/delete! @ring/jobs jobid)
r_sync (job/sync_jobs config "-d" jobid)]
r_sync (job/sync_jobs config "-d" jobid)
;; TODO: rm -rf the jobdir created via ssh in jobs/add
]
(s/notify (str "Job removed :: " jobid) "is-primary")
(f/when-failed [e]
(s/error "Failure removing job" e))))