question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task not executing

See original GitHub issue

Say you have a file foo.py:

import asyncio

async def foo():
    print('foo')
    await asyncio.sleep(0)
    print('done')

loop = asyncio.get_event_loop()
task = asyncio.ensure_future(foo())
loop.run_until_complete(task)

And a Notebook with this cell:

import nest_asyncio
nest_asyncio.apply()

import foo

Executing the cell just hangs, foo() is not executed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erdewitcommented, Oct 8, 2018

This is now fixed in v0.9.2.

0reactions
davidbrochartcommented, Oct 13, 2018

Everything works fine for me now, thanks a lot for your support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Task Scheduler not Running: 5 Methods to Enable it Again
1. Check if the scheduled task is enabled · Press Windows + R , then type taskschd.msc and hit Enter . · Click...
Read more >
Task Scheduler not running, triggering or starting programs
1] Check and start Task Scheduler service · 2] Change the Service configuration · 3] Start Task Scheduler using Command Prompt · 4]...
Read more >
How to Fix Windows Task Scheduler Not Running on ...
Double-click the task that will not run. Go to the Conditions tab. Uncheck the 'Start the task only if the computer is on...
Read more >
7 Tips to Fix Task Scheduler Not Running/Working Windows 10
Fix 1. Make Sure Task Scheduler Service Is Running. Press Windows + R, type msc in Run box, and press Enter to open...
Read more >
Task scheduler - Windows 2019 - Indefinitly task not running
Randomly servers start to not run the schedule after reboots or patch nights. One trick I was using was to go out and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found