This commit is contained in:
Egor Matveev
2022-04-01 19:23:50 +03:00
parent ce8ff2f3e5
commit 597eb0e383
2 changed files with 17 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
from subprocess import call
from SprintLib.queue import MessagingSupport
class Command(MessagingSupport):
help = "starts docker cleaner"
queue_name = "cleaner"
def process(self, payload: dict):
call(f'docker {payload["type"]} rm --force {payload["name"]}', shell=True)