{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/27066","labels_url":"https://api.github.com/repos/saltstack/salt/issues/27066/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/27066/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/27066/events","html_url":"https://github.com/saltstack/salt/issues/27066","id":106064888,"number":27066,"title":"Add --async flag to salt-cloud or `parallel=True` to the cloud execution module","user":{"login":"imchairmanm","id":3957147,"avatar_url":"https://avatars.githubusercontent.com/u/3957147?v=3","gravatar_id":"","url":"https://api.github.com/users/imchairmanm","html_url":"https://github.com/imchairmanm","followers_url":"https://api.github.com/users/imchairmanm/followers","following_url":"https://api.github.com/users/imchairmanm/following{/other_user}","gists_url":"https://api.github.com/users/imchairmanm/gists{/gist_id}","starred_url":"https://api.github.com/users/imchairmanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imchairmanm/subscriptions","organizations_url":"https://api.github.com/users/imchairmanm/orgs","repos_url":"https://api.github.com/users/imchairmanm/repos","events_url":"https://api.github.com/users/imchairmanm/events{/privacy}","received_events_url":"https://api.github.com/users/imchairmanm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T18:20:02Z","updated_at":"2015-09-11T22:45:46Z","closed_at":null,"body":"Hello!\r\n\r\nCurrently, it does not seem to be possible to spin up cloud instances both asynchronously and in parallel.\r\n\r\nThe `salt-cloud` command has the `--parallel` flag, but no asynchronous capabilities.  The `cloud` execution module is exactly the opposite: it can take advantage of `salt --async` for asynchronous processing, but there doesn't seem to be any way to trigger parallel creates.  So essentially, you can currently use the `salt-cloud` module if you want execution in parallel, or the cloud execution module if you want to operate asynchronously.\r\n\r\nI think it'd be a good idea to allow both pieces of functionality in either one of these components.  So either allow something like:\r\n\r\n```\r\nsalt-cloud --parallel --async -p profile instance1 instance2 instance3\r\n```\r\n\r\nOr something like this:\r\n\r\n```\r\nsalt --async salt cloud.profile profile instance1 instance2 instance3 parallel=True\r\n```\r\n\r\nOr really, any other implementation that would provide this functionality.  Adding this functionality to `salt-cloud` would probably be preferable since it has additional features like the ability to use map files."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/139679600","html_url":"https://github.com/saltstack/salt/issues/27066#issuecomment-139679600","issue_url":"https://api.github.com/repos/saltstack/salt/issues/27066","id":139679600,"user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T22:45:46Z","updated_at":"2015-09-11T22:45:46Z","body":"Thanks for the request @imchairmanm! I agree that it would be very useful to have each of these options available in salt-cloud. I thought this sounded like a request that we've already received, but I can't seem to find int. Anyway, thanks for the suggestion."}}