File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 1616 * job names instead of PIDs
1717"""
1818import asyncio
19- from async_generator import async_generator , yield_
2019import pwd
2120import os
2221import re
@@ -490,28 +489,15 @@ async def stop(self, now=False):
490489 )
491490 )
492491
493- @async_generator
494492 async def progress (self ):
495493 while True :
496494 if self .state_ispending ():
497- await yield_ (
498- {
499- "message" : "Pending in queue..." ,
500- }
501- )
495+ yield {"message" : "Pending in queue..." }
502496 elif self .state_isrunning ():
503- await yield_ (
504- {
505- "message" : "Cluster job running... waiting to connect" ,
506- }
507- )
497+ yield {"message" : "Cluster job running... waiting to connect" }
508498 return
509499 else :
510- await yield_ (
511- {
512- "message" : "Unknown status..." ,
513- }
514- )
500+ yield {"message" : "Unknown status..." }
515501 await gen .sleep (1 )
516502
517503
Original file line number Diff line number Diff line change 3535 },
3636 python_requires = ">=3.7" ,
3737 install_require = {
38- "async_generator>=1.8" ,
3938 "jinja2" ,
4039 "jupyterhub>=1.5.1" ,
4140 },
You can’t perform that action at this time.
0 commit comments