Пример #1
0
def send_3(item):
    '''
    3xx状态发送通知
    '''
    d = {
        'title': '页面重定向通知',
        'content': '%s\n此页面已重定向到其他路径,请尽快处理' % item.get('page_url')
    }
    # 通知同时暂停
    network.stop(item.get('page_url_id'))
    wechatNotify.send(item, **d)
    dingTalkNotify.send(item, **d)
Пример #2
0
 def stop_network(self):
     print("Stopping network for process %s" % self.pid.value)
     network.stop(self.pid.value)
Пример #3
0
 def stop_network(self):
     logger.info(f'Stopping network for process {self._pid}')
     network.stop(self._pid)