Skip to content
Snippets Groups Projects
Commit 347b8683 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #8899: Bugfix: avoid repeatingly processing same status update

parent 504f8f20
No related branches found
No related tags found
No related merge requests found
......@@ -133,8 +133,8 @@ if __name__ == "__main__":
msg = EventMessage(context="otdb.treestatus", content=content)
print treeid, allowed_states.get(state, "unknwon_state"), modtime, creation
send_bus.send(msg)
otdb_connection.query("update otdb_admin set treestatusevent = '%s'" % start_time)
start_time = creation
otdb_connection.query("update otdb_admin set treestatusevent = '%s'" % start_time)
print "==="
# Redetermine the database status.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment