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

create task manager for async commands #13

Open
Toure opened this issue Dec 8, 2015 · 1 comment
Open

create task manager for async commands #13

Toure opened this issue Dec 8, 2015 · 1 comment

Comments

@Toure
Copy link
Owner

Toure commented Dec 8, 2015

This would give the user the ability to launch commands, placed into the background, and trigger on
event keyword.
example: https://docs.python.org/3/library/asyncio.html

@Toure
Copy link
Owner Author

Toure commented Feb 15, 2016

example:

import asyncio

async def worker(cmd):
print("Doing something important")
doing_something_important(cmd)
return_prompt()

event = asyncio.get_event_loop()
event.run_until_complete(worker())

This would allow us to spawn jobs in the background and return a status info once the job has completed. Which in turn would allow users to start multiple jobs on the command line and not have to worry about checking status later as it can be dumped to a file or to the current session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant