crontab script
This commit is contained in:
parent
7dd38624a4
commit
11151bc91d
2 changed files with 23 additions and 4 deletions
19
extractors/run_daily.sh
Normal file
19
extractors/run_daily.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# script a lancer de façon quotidienne
|
||||
# machine de référence: proxmox
|
||||
# penser à copier les fichiers json de cache si lancé depuis une autre machine
|
||||
# crontab -e
|
||||
# -----------------
|
||||
# 0 0 * * * cd /home/tykayn/www/oedb-backend/extractors && bash run_daily.sh
|
||||
# */15 * * * * cd /home/tykayn/www/OEDb_Scrappers && source venv/bin/activate && bash run_jobs.sh # scrappers de traffic
|
||||
|
||||
source ../venv/bin/activate
|
||||
pip install -r ../requirements.txt
|
||||
|
||||
LOG_FILE="./log_conjob_daily.log"
|
||||
|
||||
/bin/python3 mobilizon.py --limit 2000 --instance-url https://mobilizon.fr --geocode-missing
|
||||
/bin/python3 agenda_geek.py
|
||||
/bin/python3 osm_cal.py --max-events 100
|
||||
/bin/python3 viparis_events.py --max-pages 2 --max-events 200 --no-dry-run
|
||||
/bin/python3 world_days_extractor.py --limit 800 --no-dry-run
|
|
@ -3,9 +3,9 @@ config==0.5.1
|
|||
falcon==4.1.0
|
||||
iso8601==2.1.0
|
||||
psycopg2_binary==2.9.10
|
||||
pyproj==3.7.2
|
||||
pytz==2025.2
|
||||
Requests==2.32.5
|
||||
waitress==3.0.2
|
||||
pyproj
|
||||
pytz
|
||||
Requests
|
||||
waitress
|
||||
jinja2
|
||||
icalendar
|
Loading…
Add table
Add a link
Reference in a new issue