Add a worker to automatically GC expired app specific tokens
Fixes https://jira.coreos.com/browse/QUAY-822
This commit is contained in:
parent
06d25816be
commit
d45161b120
7 changed files with 77 additions and 5 deletions
4
conf/init/service/batch/expiredappspecifictokenworker/log/run
Executable file
4
conf/init/service/batch/expiredappspecifictokenworker/log/run
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start the logger
|
||||
exec logger -i -t expiredappspecifictokenworker
|
9
conf/init/service/batch/expiredappspecifictokenworker/run
Executable file
9
conf/init/service/batch/expiredappspecifictokenworker/run
Executable file
|
@ -0,0 +1,9 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting Expired app specific token GC worker'
|
||||
|
||||
QUAYPATH=${QUAYPATH:-"."}
|
||||
cd ${QUAYDIR:-"/"}
|
||||
PYTHONPATH=$QUAYPATH venv/bin/python -m workers.expiredappspecifictokenworker 2>&1
|
||||
|
||||
echo 'Expired app specific token GC exited'
|
Reference in a new issue