git webhook test

This commit is contained in:
Marvin Zhang
2019-03-16 19:36:04 +08:00
parent e878dcb227
commit b6aeeb46ea

View File

@@ -73,7 +73,6 @@ api.add_resource(ScheduleApi,
def monitor_nodes_status(celery_app):
def update_nodes_status(event):
node_id = event.get('hostname')
db_manager.update_one('nodes', id=node_id, values={
'status': NodeStatus.ONLINE
})