Skip to content

Commit

Permalink
feat: allow to specify housekeeping hours for expired and info alerts (
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ce committed Dec 11, 2020
1 parent 99456f6 commit 9aa906c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ RUN chgrp -R 0 /app /venv /web && \
USER 1001

ENV HEARTBEAT_SEVERITY major
ENV HK_EXPIRED_DELETE_HRS 2
ENV HK_INFO_DELETE_HRS 12

COPY docker-entrypoint.sh /usr/local/bin/
COPY supervisord.conf /app/supervisord.conf
Expand Down
2 changes: 1 addition & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ command=nginx -c /app/nginx.conf
redirect_stderr=true

[program:housekeeping]
command=bash -c "sleep 60 && alerta housekeeping"
command=bash -c "sleep 60 && alerta housekeeping --expired %(ENV_HK_EXPIRED_DELETE_HRS)s --info %(ENV_HK_INFO_DELETE_HRS)s"
autostart=true
autorestart=true
redirect_stderr=true
Expand Down

0 comments on commit 9aa906c

Please sign in to comment.