mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 11:24:18 +00:00
19 lines
453 B
Python
19 lines
453 B
Python
|
from tasks.check_jobs import check_jobs
|
||
|
from tasks.check_corpora import check_corpora
|
||
|
from tasks.notify import notify
|
||
|
from time import sleep
|
||
|
|
||
|
|
||
|
def nopaqued():
|
||
|
# executing background functions
|
||
|
while True:
|
||
|
check_jobs()
|
||
|
check_corpora()
|
||
|
notify(True) # If True mails are sent. If False no mails are sent.
|
||
|
# But notification status will be set nonetheless.
|
||
|
sleep(3)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
nopaqued()
|