Commit a8618220 authored by David Mendez's avatar David Mendez

Make pylint happy

parent 92dc8e86
Pipeline #93237 passed with stages
in 3 minutes and 59 seconds
......@@ -7,13 +7,18 @@ import time
from app.tasks_daemon import daemon
from app import create_app
def run():
def run():
"""
Runs the daemon periodically
"""
flask_app = create_app()
with flask_app.app_context():
while True:
sleep_time, jobs_were_checked = daemon.check_for_tasks_to_do()
print('jobs_were_checked: ', jobs_were_checked)
time.sleep(sleep_time)
if __name__ == "__main__":
run()
\ No newline at end of file
run()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment