Skip to content
Snippets Groups Projects
Commit 84eab014 authored by pabmarc's avatar pabmarc
Browse files

Upload New File

parent 317005a9
No related branches found
No related tags found
No related merge requests found
import subprocess
import time
import logging
import pandas as pd
import psycopg2.extras
logging.warning("Log app started")
while True:
today = pd.Timestamp.today()
logging.warning(today)
if today.hour == 8 and today.minute == 7:
logging.warning("Scraping...")
cmds_list = ["python EjemploLauncher.py"]
processes = [subprocess.Popen(cmd, shell=True) for cmd in cmds_list]
for p in processes:
p.wait()
#print("Durmiendo...")
logging.warning("Sleeping")
time.sleep(70000)
else:
time.sleep(30)
logging.warning("Duerme30")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment