Skip to content

Instantly share code, notes, and snippets.

@codemation
Last active July 6, 2021 12:14
Show Gist options
  • Save codemation/a927af643946f609b4c328e0101cfa0c to your computer and use it in GitHub Desktop.
Save codemation/a927af643946f609b4c328e0101cfa0c to your computer and use it in GitHub Desktop.
monitor body
scheduler = EasyScheduler()
server = FastAPI()
every_minute = '* * * * *'
@server.on_event('startup')
async def setup():
asyncio.create_task(scheduler.start())
server.charts = await ChartServer.create(
server,
charts_db="charts_database",
chart_prefix = '/mycharts'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment