forked from M-Labs/artiq
1
0
Fork 0

management/scheduler: cleanup pending tasks

This commit is contained in:
Sebastien Bourdeauducq 2015-01-13 18:01:01 +08:00
parent f12e721974
commit 2029613c58
1 changed files with 2 additions and 0 deletions

View File

@ -115,3 +115,5 @@ class Scheduler:
], ],
timeout=next_periodic, timeout=next_periodic,
return_when=asyncio.FIRST_COMPLETED) return_when=asyncio.FIRST_COMPLETED)
for t in pend:
t.cancel()