mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
24 lines
613 B
Python
24 lines
613 B
Python
from tasks.check_corpora import check_corpora
|
|
from tasks.check_jobs import check_jobs
|
|
from tasks.notify import notify
|
|
from time import sleep
|
|
|
|
|
|
def nopaqued():
|
|
check_corpora_thread = check_corpora()
|
|
check_jobs_thread = check_jobs()
|
|
notify_thread = notify()
|
|
|
|
while True:
|
|
if not check_corpora_thread.is_alive():
|
|
check_corpora_thread = check_corpora()
|
|
if not check_jobs_thread.is_alive():
|
|
check_jobs_thread = check_jobs()
|
|
if not notify_thread.is_alive():
|
|
notify_thread = notify()
|
|
sleep(3)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
nopaqued()
|