MCPcopy
hub / github.com/HKUDS/DeepCode / run

Function run

nanobot/nanobot/cli/commands.py:417–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415 console.print("[green]✓[/green] Heartbeat: every 30m")
416
417 async def run():
418 try:
419 await cron.start()
420 await heartbeat.start()
421 await asyncio.gather(
422 agent.run(),
423 channels.start_all(),
424 )
425 except KeyboardInterrupt:
426 console.print("\nShutting down...")
427 heartbeat.stop()
428 cron.stop()
429 agent.stop()
430 await channels.stop_all()
431
432 asyncio.run(run())
433

Callers 2

gatewayFunction · 0.85
cron_runFunction · 0.85

Calls 6

runMethod · 0.80
start_allMethod · 0.80
stop_allMethod · 0.80
run_jobMethod · 0.80
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected