Skip to content

Commit

Permalink
missing arg in loop handler
Browse files Browse the repository at this point in the history
  • Loading branch information
hscott-yuma committed Dec 5, 2024
1 parent 8b428e0 commit 7df5c8f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions precog/validators/weight_setter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ def __init__(self, config=None, loop=None):
setup_wandb(self)
self.stop_event = asyncio.Event()
bt.logging.info("Setup complete, starting loop")
self.loop.create_task(
loop_handler(self.scheduled_prediction_request, sleep_time=self.config.print_cadence)
)
self.loop.create_task(loop_handler(self.resync_metagraph, sleep_time=self.resync_metagraph_rate))
self.loop.create_task(loop_handler(self.set_weights, sleep_time=self.set_weights_rate))
self.loop.create_task(loop_handler(self, self.scheduled_prediction_request, sleep_time=self.config.print_cadence))
self.loop.create_task(loop_handler(self, self.resync_metagraph, sleep_time=self.resync_metagraph_rate))
self.loop.create_task(loop_handler(self, self.set_weights, sleep_time=self.set_weights_rate))

def __exit__(self, exc_type, exc_value, traceback):
self.save_state()
Expand Down

0 comments on commit 7df5c8f

Please sign in to comment.