Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local.execute asynchronous execution fail #568

Open
sameh-farouk opened this issue Feb 10, 2021 · 1 comment
Open

local.execute asynchronous execution fail #568

sameh-farouk opened this issue Feb 10, 2021 · 1 comment

Comments

@sameh-farouk
Copy link
Member

Description

asynchronous execution fails, when exectute a command and set asynchronous to True.

this bug is related to invoke framework, here is the open issue for that bug in pyinvoke repo
pyinvoke/invoke#742

Steps to reproduce

>>> from jumpscale.core.executors import local
>>> local.execute(['sleep', '1'], asynchronous=True)

Traceback/Logs/Alerts

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sameh/projects/js-ng/jumpscale/core/executors/command_builder.py", line 28, in inner
    return func(cmd, *args, **kwargs)
  File "/home/sameh/projects/js-ng/jumpscale/core/executors/local.py", line 160, in execute
    return res.return_code, res.stdout, res.stderr
  File "/home/sameh/projects/js-ng/.venv/lib/python3.8/site-packages/invoke/runners.py", line 1432, in return_code
    return self.exited
AttributeError: 'Promise' object has no attribute 'exited'
@sameh-farouk sameh-farouk added this to the next milestone Feb 10, 2021
@xmonader
Copy link
Collaborator

We can create a PR upstream, but nothing we can do here

@xmonader xmonader modified the milestones: next, later Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants