示例#1
0
def run_frequent_tasks():
    """ Should be run every 5-10 min by a clock process or scheduler """
    # scrape new info from utilities
    updated_bas = update_bas(['BPA', 'ISONE', 'MISO'])
    perform_scheduled_tasks()
    send_ne_texts_if_necessary()
    print updated_bas
示例#2
0
 def handle(self, *args, **kwargs):
     updated_bas = tasks.update_bas(['BPA', 'ISONE', 'MISO', 'PJM'])
     utils.perform_scheduled_tasks()
     tasks.send_ne_texts_if_necessary()
     print (updated_bas)