Skip to content

minor: Sometimes got RuntimeError('Event loop is closed') on error #1144

@atemate

Description

@atemate
[ay@archlinux ~]$ n exec -T test-ssh 'echo $VAR'
ERROR: Job is not running. Job Id = job-a157d748-60e7-4ce4-a198-70c4f3700c95
ERROR: exception calling callback for <Future at 0x7ff509bf9ef8 state=finished returned list>
Traceback (most recent call last):
  File "/home/ay/.pyenv/versions/3.6.3-debug/lib/python3.6/concurrent/futures/_base.py", line 324, in _invoke_callbacks
    callback(self)
  File "/home/ay/.pyenv/versions/3.6.3-debug/lib/python3.6/asyncio/futures.py", line 419, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "/home/ay/.pyenv/versions/3.6.3-debug/lib/python3.6/asyncio/base_events.py", line 620, in call_soon_threadsafe
    self._check_closed()
  File "/home/ay/.pyenv/versions/3.6.3-debug/lib/python3.6/asyncio/base_events.py", line 357, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[ay@archlinux ~]$ n exec -T test-ssh 'echo $VAR'
ERROR: Job is not running. Job Id = job-a157d748-60e7-4ce4-a198-70c4f3700c95

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions