{"action":"created","issue":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/256","labels_url":"https://api.github.com/repos/pantheon-systems/cli/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/issues/256/comments","events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/256/events","html_url":"https://github.com/pantheon-systems/cli/issues/256","id":89902655,"number":256,"title":"Issue with waitOnWorkflow method","user":{"login":"spleshka","id":1053418,"avatar_url":"https://avatars.githubusercontent.com/u/1053418?v=3","gravatar_id":"","url":"https://api.github.com/users/spleshka","html_url":"https://github.com/spleshka","followers_url":"https://api.github.com/users/spleshka/followers","following_url":"https://api.github.com/users/spleshka/following{/other_user}","gists_url":"https://api.github.com/users/spleshka/gists{/gist_id}","starred_url":"https://api.github.com/users/spleshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spleshka/subscriptions","organizations_url":"https://api.github.com/users/spleshka/orgs","repos_url":"https://api.github.com/users/spleshka/repos","events_url":"https://api.github.com/users/spleshka/events{/privacy}","received_events_url":"https://api.github.com/users/spleshka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pantheon-systems/cli/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-21T12:10:45Z","updated_at":"2015-07-17T18:17:35Z","closed_at":null,"body":"Hi,\r\n\r\nOn some projects on Pantheon we have really huge databases. To clone a database to multidev environment we use the following cli command:\r\n\r\n````\r\nterminus site clone-env --site=sitename --from-env=test --to-env=multidev --db\r\n````\r\n\r\nThe issue is that sometimes this command finishes faster than the database was really migrated to the multidev environment. The reason of this issue is in the method waitOnWorkflow() (see https://github.com/pantheon-systems/cli/blob/master/php/class-terminus-command.php#L183): it waits only for 100 tries * 3 seconds =  300 seconds (5 mins). So if any job takes longer than 5 minutes (which is the root of the evel in our case) then cli command with stop its execution before a job has been really finished. \r\n\r\nI would suggest 2 possible solutions of this issue:\r\n\r\n1. Just change the amount of tries up to 300. 15 mins should be enough to cover most of the jobs.\r\n\r\n2. Add an additional argument to all cli commands which use waitOnWorkflow() method to adjust timeout setting. Something like this:\r\n\r\n````\r\nterminus site clone-env --site=sitename --from-env=test --to-env=multidev --timeout=900 --db\r\n````\r\n\r\nLooking forward for your answer.\r\n\r\nThanks,\r\nSpleshka."},"comment":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments/122363778","html_url":"https://github.com/pantheon-systems/cli/issues/256#issuecomment-122363778","issue_url":"https://api.github.com/repos/pantheon-systems/cli/issues/256","id":122363778,"user":{"login":"spleshka","id":1053418,"avatar_url":"https://avatars.githubusercontent.com/u/1053418?v=3","gravatar_id":"","url":"https://api.github.com/users/spleshka","html_url":"https://github.com/spleshka","followers_url":"https://api.github.com/users/spleshka/followers","following_url":"https://api.github.com/users/spleshka/following{/other_user}","gists_url":"https://api.github.com/users/spleshka/gists{/gist_id}","starred_url":"https://api.github.com/users/spleshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spleshka/subscriptions","organizations_url":"https://api.github.com/users/spleshka/orgs","repos_url":"https://api.github.com/users/spleshka/repos","events_url":"https://api.github.com/users/spleshka/events{/privacy}","received_events_url":"https://api.github.com/users/spleshka/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T18:17:34Z","updated_at":"2015-07-17T18:17:34Z","body":"Great @bensheldon, looking forward to see timeout issue solved :) Let me know if I can help you. Thanks!"}}