We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f15c39 commit 2e2ed80Copy full SHA for 2e2ed80
Dockerfile
@@ -1,6 +1,7 @@
1
FROM python:3.8-slim-buster
2
3
RUN apt-get update && apt-get install -y git
4
+RUN apt-get install -y procps
5
6
WORKDIR /app
7
@@ -9,4 +10,4 @@ RUN pip3 install -r requirements.txt
9
10
11
COPY . .
12
-CMD [ "./script.sh" ]
13
+CMD "./script.sh"
script.sh
@@ -1,6 +1,10 @@
while true
-do
- pkill -f import_recent_changes.py &
- python import_recent_changes.py &
- sleep 300
+do
+ echo "kill previews process"
+ pkill -f import_recent_changes.py
+ sleep 3
+ echo "importing entity"
+ python -u import_recent_changes.py &
8
+ echo "import done"
+ sleep 300
done
0 commit comments