cleaner
This commit is contained in:
11
daemons/management/commands/docker_cleaner.py
Normal file
11
daemons/management/commands/docker_cleaner.py
Normal 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)
|
Reference in New Issue
Block a user