Skip to content

Commit 2e878cb

Browse files
committed
Added docker service for watchdog
1 parent e92627e commit 2e878cb

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

app/processing_watchdog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
logger = get_root_logger(service_name='processing_watchdog')
1818

19-
DEFAULT_MAX_SECONDS = 600
20-
DEFAULT_INTERVAL_SECONDS = 60
19+
DEFAULT_MAX_SECONDS = 300
20+
DEFAULT_INTERVAL_SECONDS = 30
2121

2222
def get_config_values():
2323
try:

app_conf/config.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ lti_consumer_secret=supersecretconsumersecret
66
version_file=VERSION.json
77
backup_path=../dump/database-dump/
88
storage_max_size_mbytes=20000
9+
processing_limit = 600
10+
interval_time = 30
911

1012
[mongodb]
1113
url=mongodb://db:27017/

app_conf/testing.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ lti_consumer_secret=testing_lti_consumer_secret
66
version_file=VERSION.json
77
backup_path=../dump/database-dump/
88
storage_max_size_mbytes=20000
9+
processing_limit = 600
10+
interval_time = 30
911

1012
[mongodb]
1113
url=mongodb://db:27017/

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ services:
8686
volumes:
8787
- whisper_models:/root/.cache/whisper
8888

89+
processing_watchdog:
90+
image: wst-image:v0.2
91+
command: python3 -m processing_watchdog $APP_CONF
92+
restart: always
93+
depends_on:
94+
- db
95+
8996
volumes:
9097
whisper_models:
9198
nltk_data:

0 commit comments

Comments
 (0)