Add operatornotify to do_tasks.

This commit is contained in:
voussoir 2022-11-02 18:41:44 -07:00
parent 425deb3830
commit d92f190590
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -8,6 +8,10 @@ import sys
import time import time
from voussoirkit import backoff from voussoirkit import backoff
from voussoirkit import operatornotify
from voussoirkit import vlogging
log = vlogging.get_logger(__name__, 'do_tasks')
bo = backoff.Linear(m=1, b=5, max=1800) bo = backoff.Linear(m=1, b=5, max=1800)
@ -47,6 +51,8 @@ def do_tasks_argparse(args):
return do_tasks_forever() return do_tasks_forever()
@operatornotify.main_decorator(subject='do_tasks')
@vlogging.main_decorator
def main(argv): def main(argv):
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)