Skip to content
Snippets Groups Projects
Commit 32b3d848 authored by shinedday's avatar shinedday
Browse files

Fix scheduler

parent 4e71ae46
Branches
No related tags found
No related merge requests found
No preview for this file type
...@@ -69,7 +69,7 @@ class Scheduler(Schedulable): ...@@ -69,7 +69,7 @@ class Scheduler(Schedulable):
""" """
self.nbr_agent += 1 self.nbr_agent += 1
self.subscribe( self.subscribe(
"agent/" + literal_eval(message.payload.decode("utf-8")).get("id") + "/cycle_done", "agent/" + str(literal_eval(message.payload.decode("utf-8")).get("id")) + "/cycle_done",
self.agent_done) self.agent_done)
# print("__Update agent : ", self.nbr_agent, str(message.payload.decode("utf-8"))) # print("__Update agent : ", self.nbr_agent, str(message.payload.decode("utf-8")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment