Set up the service monitoring for the log migration script. Add a database migration to add the logs_archived column.
This commit is contained in:
parent
b55e79e5d3
commit
353da13b16
5 changed files with 38 additions and 1 deletions
|
@ -16,7 +16,7 @@ POLL_PERIOD_SECONDS = 30
|
|||
logger = logging.getLogger(__name__)
|
||||
sched = BlockingScheduler()
|
||||
|
||||
@sched.scheduled_job(trigger='interval', seconds=1)
|
||||
@sched.scheduled_job(trigger='interval', seconds=30)
|
||||
def archive_redis_buildlogs():
|
||||
""" Archive a single build, choosing a candidate at random. This process must be idempotent to
|
||||
avoid needing two-phase commit. """
|
||||
|
|
Reference in a new issue