Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See drush site aliases and #628996: Concurrently execute a single drush command on multiple sites. Some of your ideas here might be helpful; I'll certainly review your code when I work on this.
Comments
Comment #1
fl3a CreditAttribution: fl3a commentedMy implementation of exec is a waste product and there are imho more elegant solutions for implementing this.
But some so called "helper-fuctions" or rudiments might be useful.
#628996: Concurrently execute a single drush command on multiple sites would be awesome, do not hesitate to contact me.
Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commenteddrush-3 will sequentially execute a command on multiple sites (e.g.
drush @site1,@site2,@site3 update
). At some point in the future we might try to make the commands execute concurrently, as described in the above-referenced issue.Comment #3
roball CreditAttribution: roball commentedHandling all sites of a multisite environment can now be done directly with drush 3.x, using
Comment #4
fl3a CreditAttribution: fl3a commentedYes, indeed!
Tested today with v.3.3 and it also works with v.4-dev (#831272: '@sites' alias doesn't work unless drush can find at least one local site at the drupal root).
@greg.1.anderson GREAT WORK!
Will thin out drush_multi´s code because of duplicate functionality.
Comment #5
fl3a CreditAttribution: fl3a commentedComment #6
fl3a CreditAttribution: fl3a commentedAdded @depicated tag to the exec functions, added drush_log() with priority 'warning', updated the documentation and the project page.
Will remove these 2 functions soon.
Comment #7
fl3a CreditAttribution: fl3a commentedDeleted every related function and corresponding documentation.