SHARE
TWEET

Untitled

a guest Jun 20th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # MagentoFrameworkCodeGeneratedFiles has a concurrency problem
  4. # Create regenerate flag and launch parallel commands that try to regenerate at the same time
  5. # This is a real case, cron:run launches stand alone processes in parallel
  6.  
  7. # Created by magento composer installer upon code install or module enable/disable
  8. touch var/.regenerate
  9.  
  10. # Launch parallel commands
  11. # Error differs each execution, sometimes it even works
  12. bin/magento cron:run --group=ddg_automation --bootstrap=standaloneProcessStarted=1 2>&1 &
  13. bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1 2>&1 &
  14.  
  15. wait
  16. echo "All done"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top