def post_update(entity, operation): if has_queue(): entity_ref = to_ref(entity) if entity_ref is None: return data = dict(operation=operation, entity=entity_ref) post_message(UPDATE_SERVICE, json.dumps(data))
def daily(): post_message(DAILY, '')
def hourly(): post_message(HOURLY, '')
def minute(): post_message(MINUTE, '')