Skip to content

Commit 15a46cb

Browse files
fixing dep issues
1 parent 79ae914 commit 15a46cb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ WORKDIR /usr/src/app
44
COPY . .
55
RUN pip3 install --upgrade pip
66
RUN pip install -r requirements.txt
7-
CMD gunicorn app:app -b 0.0.0.0:8000 --workers 2 --worker-class gevent --timeout 60 --max-requests 1000 --max-requests-jitter 200
7+
CMD gunicorn app:app -b 0.0.0.0:8000 --workers 2 --timeout 60 --max-requests 1000 --max-requests-jitter 200

scraper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def scrape_schedules():
2626
def scrape_videos():
2727
logging.info("Scraping YouTube videos")
2828
fetch_videos()
29+
elapsed_time = time.time() - start_time
30+
logging.info(f"Completed scraping videos in {elapsed_time:.2f} seconds")
2931

3032

3133
def signal_handler(sig, frame):

0 commit comments

Comments
 (0)