acquia / acsf-tools

Command line tools for working with Acquia Cloud Site Factory
21 stars 25 forks source link

ACSF-Tools command continue for next site on failure #123

Closed joshirohit100 closed 2 years ago

joshirohit100 commented 3 years ago

acsf-tools-ml command not having exception handling and thus not executes on all sites if fails/exception on one site.

Example - We are running db-update using this command. There are still some old site which are no longer available on env and thus when this command runs on those, we get exception and thus commands terminates there.

In Process.php line 235:

  The command "/mnt/www/html/*/vendor/drush/drush/drush status  --uri=URIHERE --root=/mnt/www/html/*/docroot" failed.

  Exit Code: 1(General error)

  Working directory:

  Output:
  ================

  Error Output:
  ================

  In D8-settings.functions.inc line 137:

    Failed to connect to any database servers for database {*DBNAMEHERE*}.

  core:status [--project PROJECT] [--format [FORMAT]] [--fields FIELDS] [--field FIELD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--de
  bug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--notify] [--xh-link XH-LINK]
  [--] <command> [<filter>]
joshirohit100 commented 3 years ago

PR - #124

sdelbosc commented 3 years ago

Merged. Please update here if all good.