make listener robust to bad data
This commit is contained in:
@@ -5,4 +5,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY scheduler/ ./scheduler
|
||||
COPY models/ ./models
|
||||
ENV PYTHONPATH=/app
|
||||
CMD ["python", "scheduler/scheduler.py"]
|
||||
CMD ["python", "-m", "scheduler.scheduler"]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import os
|
||||
import logging
|
||||
from db_utils import get_active_events
|
||||
from .db_utils import get_active_events
|
||||
import paho.mqtt.client as mqtt
|
||||
import json
|
||||
import datetime
|
||||
|
||||
Reference in New Issue
Block a user