1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

mutex for events, re-enable dsa-watcher

This commit is contained in:
Thorsten
2016-09-05 23:39:34 +02:00
parent bddc3034d5
commit d92a177aa8
3 changed files with 24 additions and 7 deletions

View File

@@ -363,7 +363,8 @@ def command_teatimer(argv, **args):
),
'event': {
'time': ready,
'msg': (args['reply_user'] + ': Your tea is ready!')
'msg': (args['reply_user'] + ': Your tea is ready!'),
'mutex': 'teatimer_{}'.format(args['reply_user'])
}
}
@@ -629,9 +630,11 @@ def command_dsa_watcher(argv=None, **_):
msg = 'next crawl set to %s' % time.strftime('%Y-%m-%d %H:%M', time.localtime(crawl_at))
out.append(msg)
return {
# 'msg': out,
'event': {
'time': crawl_at,
'command': (command_dsa_watcher, ([],))
'command': (command_dsa_watcher, ([],)),
'mutex': 'dsa'
}
}