Skip to content

Commit

Permalink
feat: Avoid the controller waiting too long to be awaken
Browse files Browse the repository at this point in the history
  • Loading branch information
Konubinix committed Oct 17, 2023
1 parent 84abdea commit 8bc43f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipfsworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ async def main():
host=os.environ["REDIS_HOST"],
)
hostname = os.environ["WORKER_NAME"]
# simply tell the controller that it might be awaken to send some work
await client.publish("ipfsworker.controller.wake", "dummy")
await asyncio.gather(
add_files(client, hostname),
inform_remaining_size(client, hostname),
Expand Down

0 comments on commit 8bc43f5

Please sign in to comment.