How to run a infinite loop task in backgroud? #7236
Unanswered
0106WeiWeiDeng
asked this question in
Q&A
Replies: 1 comment
-
https://docs.aiohttp.org/en/stable/web_advanced.html#background-tasks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Recently, I design a analysis platform using aiohttp and slurm, and I want to use a infinite loop to check slurm job state in backgroud, the code looks like this:
in view.py
in main.py
How to run query_slurm_job_state function in backgroud? Can I use
app.on_startup.append()
? Does anyone give me a hint? Thanks in advance!Beta Was this translation helpful? Give feedback.
All reactions