{"action":"created","issue":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/145","labels_url":"https://api.github.com/repos/pantheon-systems/cli/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/issues/145/comments","events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/145/events","html_url":"https://github.com/pantheon-systems/cli/issues/145","id":58235001,"number":145,"title":"How to know if a process has completed?","user":{"login":"livewyer","id":1088354,"avatar_url":"https://avatars.githubusercontent.com/u/1088354?v=3","gravatar_id":"","url":"https://api.github.com/users/livewyer","html_url":"https://github.com/livewyer","followers_url":"https://api.github.com/users/livewyer/followers","following_url":"https://api.github.com/users/livewyer/following{/other_user}","gists_url":"https://api.github.com/users/livewyer/gists{/gist_id}","starred_url":"https://api.github.com/users/livewyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livewyer/subscriptions","organizations_url":"https://api.github.com/users/livewyer/orgs","repos_url":"https://api.github.com/users/livewyer/repos","events_url":"https://api.github.com/users/livewyer/events{/privacy}","received_events_url":"https://api.github.com/users/livewyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-19T16:50:47Z","updated_at":"2015-02-24T20:23:45Z","closed_at":null,"body":"The second place where scripting module updates has fallen down is knowing when a process has completed.  For example, we spin up a new multidev environment for applying and testing updates before merging them in to master branch for deployment through dev, stage and prod.  \r\n\r\nAfter running `terminus site create-env` we get a success message, but if we jump right then into `terminus drush up` the drush command will fail because the environment is not yet fully provisioned.  Is there a way to know via Terminus if a process like create-env has completed instead of having to log in to the dashboard and look there?  Part of the point of Terminus as I understand it is to prevent the need to log in to the Dashboard for common tasks.  `terminus site jobs` does not seem to provide a clear way to know if the job I just triggered is running or has completed.  Should we check that every 5 seconds and look for a certain job and SUCCESS in the status column?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments/75838053","html_url":"https://github.com/pantheon-systems/cli/issues/145#issuecomment-75838053","issue_url":"https://api.github.com/repos/pantheon-systems/cli/issues/145","id":75838053,"user":{"login":"livewyer","id":1088354,"avatar_url":"https://avatars.githubusercontent.com/u/1088354?v=3","gravatar_id":"","url":"https://api.github.com/users/livewyer","html_url":"https://github.com/livewyer","followers_url":"https://api.github.com/users/livewyer/followers","following_url":"https://api.github.com/users/livewyer/following{/other_user}","gists_url":"https://api.github.com/users/livewyer/gists{/gist_id}","starred_url":"https://api.github.com/users/livewyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livewyer/subscriptions","organizations_url":"https://api.github.com/users/livewyer/orgs","repos_url":"https://api.github.com/users/livewyer/repos","events_url":"https://api.github.com/users/livewyer/events{/privacy}","received_events_url":"https://api.github.com/users/livewyer/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T20:23:45Z","updated_at":"2015-02-24T20:23:45Z","body":"Looks like it worked this time, but it also looks like two attempts were made to run `drush up` when the first attempt failed.  Here's the output (I changed a few identifiers to keep it anonymous):\r\n```\r\nRunning drush up --strict=0 --core  on fake-site-hotfix-up\r\nWarning: Permanently added the RSA host key for IP address '[104.130.220.65]:2222' to the list of known hosts.\r\nCould not login with user ID #0. This is typically caused by             [error]\r\nimporting a MySQL database dump from a faulty tool which re-numbered\r\nthe anonymous user ID in the users table. See\r\nhttp://drupal.org/node/1029506 for help recovering from this\r\nsituation.\r\nRunning 'drush updb'...\r\nRunning drush updb -y --strict=0  on fake-site-hotfix-up\r\nNo database updates required                                           [success]\r\n'all' cache was cleared in                                             [success]\r\n/srv/bindings/9x274x9xx5x14c99999b40e9999999af/code#hotfix-up-fake-site.gotpantheon.com\r\nFinished performing updates.                                                [ok]\r\n```"}}