Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Jul 21, 2024
1 parent 9d24efa commit f04aa73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bindings/ceylon/tests/test_worker/meeting_schedular.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ def is_overlap(slot1: TimeSlot, slot2: TimeSlot, duration: int) -> bool:
return earliest_end - latest_start >= duration

async def run(self, inputs: "bytes"):
input: RunnerInput = pickle.loads(inputs)
self.meeting = input.request
self.meeting = pickle.loads(inputs)
print("Meeting Schedule request: ", self.meeting)

async def on_agent_connected(self, topic: "str", agent_id: "str"):
Expand Down Expand Up @@ -144,7 +143,7 @@ async def main():

coordinator = Coordinator()
await coordinator.run_admin(
inputs=Meeting(name="Meeting 1", duration=2, date="2024-07-21", minimum_participants=3),
inputs=pickle.dumps(Meeting(name="Meeting 1", duration=2, date="2024-07-21", minimum_participants=3)),
workers=[agent1, agent2, agent3, agent4, agent5]
)

Expand Down

0 comments on commit f04aa73

Please sign in to comment.