Make GC of repositories fully async for whitelisted namespaces
This change adds a worker to conduct GC on repositories with garbage every 10s. Fixes #144
This commit is contained in:
parent
acd86008c8
commit
70de107268
6 changed files with 111 additions and 10 deletions
2
conf/init/service/gcworker/log/run
Executable file
2
conf/init/service/gcworker/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gcworker
|
8
conf/init/service/gcworker/run
Executable file
8
conf/init/service/gcworker/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting GC worker'
|
||||
|
||||
cd /
|
||||
venv/bin/python -m workers.gcworker 2>&1
|
||||
|
||||
echo 'Repository GC exited'
|
Reference in a new issue