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.
I have custom drush command on which I have couple exports. But after the first export others are not executing.
I using function drush_views_data_export()
And in this function we have such code which stoping exection next exports:
// Because of a bug in the way that Drush 4 computes the name of functions to
// call from a Drush command, we may end up getting called twice, so we just
// don't do anything on subsequent invocations.
static $already_run = FALSE;
if ($already_run) {
return;
}
$already_run = TRUE;
Trying find sulution...
Comment | File | Size | Author |
---|---|---|---|
#2 | views_data_export-running-couple-exports-V2-2719509.patch | 1.33 KB | AndrewsizZ |
#2 | views_data_export-running-couple-exports-V1-2719509.patch | 743 bytes | AndrewsizZ |
Comments
Comment #2
AndrewsizZ CreditAttribution: AndrewsizZ at Bright Solutions GmbH for Bright Solutions GmbH commentedFound two solutions
1. Added patch V1: check of second execution of same display
2. Added patch V2: delete check for second exection as we already have drush version 8, and this issue long time fixed