Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refresh] Respect cron locks when running crons #82

Closed
wants to merge 7,325 commits into from

Conversation

johnbillion
Copy link
Contributor

@johnbillion johnbillion commented Aug 11, 2022

This refreshes #38 and excludes the unrelated code quality changes.

Fixes #27.

danielbachhuber and others added 30 commits February 7, 2017 09:27
General improvements to the build process
Escape prefix when listing all tables with prefix
Display correct error when plugin update fails to update plugins
```
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Removing symfony/finder (v2.8.16)
  - Installing symfony/finder (v2.8.17)
    Loading from cache

  - Removing symfony/yaml (v2.8.16)
  - Installing symfony/yaml (v2.8.17)
    Downloading: 100%

  - Removing symfony/filesystem (v2.8.16)
  - Installing symfony/filesystem (v2.8.17)
    Loading from cache

  - Removing symfony/config (v2.8.16)
  - Installing symfony/config (v2.8.17)
    Downloading: 100%

  - Removing symfony/debug (v2.8.16)
  - Installing symfony/debug (v2.8.17)
    Downloading: 100%

  - Removing symfony/console (v2.8.16)
  - Installing symfony/console (v2.8.17)
    Downloading: 100%

  - Removing symfony/dependency-injection (v2.8.16)
  - Installing symfony/dependency-injection (v2.8.17)
    Downloading: 100%

  - Removing symfony/event-dispatcher (v2.8.16)
  - Installing symfony/event-dispatcher (v2.8.17)
    Loading from cache

  - Removing symfony/process (v2.8.16)
  - Installing symfony/process (v2.8.17)
    Downloading: 100%

  - Removing symfony/translation (v2.8.16)
  - Installing symfony/translation (v2.8.17)
    Downloading: 100%

  - Removing wp-cli/php-cli-tools (v0.11.1)
  - Installing wp-cli/php-cli-tools (v0.11.2)
    Downloading: 100%

Writing lock file
Generating autoload files
```
Update Composer dependencies (2/15/2017)
Remove XDebug from PHP runtime within Travis CI environment.
@johnbillion
Copy link
Contributor Author

Not sure what's up with the functional tests. Getting many failures with the wp-config.php transformation:

001 Scenario: Scheduling and then deleting an event                                                                                                          # features/cron.feature:8
      And I run `wp config set DISABLE_WP_CRON false --raw --type=constant --anchor='// ** MySQL settings - You can get this info from your web host ** //'` # features/cron.feature:5
        $ wp config set DISABLE_WP_CRON false --raw --type=constant --anchor='// ** MySQL settings - You can get this info from your web host ** //'
        
        Error: Could not process the 'wp-config.php' transformation.
        Reason: Unable to locate placement anchor.
        cwd: /tmp/wp-cli-test-run--62f596dd0d4771.02058781/
        run time: 0.21218585968018
        exit status: 1 (RuntimeException)

@wojsmol
Copy link
Contributor

wojsmol commented Aug 12, 2022

@johnbillion This is because you are using --anchor='// ** MySQL settings - You can get this info from your web host ** // witch don't match wp-config.php generated with WP-CLI https://github.com/wp-cli/config-command/blob/f5960976af5b0a6f2f19a1bb9762d84494038759/templates/wp-config.mustache#L22

@johnbillion
Copy link
Contributor Author

Right but that anchor hasn't changed in this PR

@johnbillion
Copy link
Contributor Author

Oh I beg your pardon, yes it has. Hmmmm.

features/cron.feature Outdated Show resolved Hide resolved
@wojsmol
Copy link
Contributor

wojsmol commented Aug 12, 2022

Template used to generate wp-config.php was updated in wp-cli/config-command#139

Co-authored-by: Wojciech Smoliński <[email protected]>
@danielbachhuber
Copy link
Member

Proceeding with wp-cli/wp-cli#5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/800870993ce975f7e775219180cc37fa in case this PR is auto-closed or broken in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wp cron event run --due-now doesn't respect doing_cron transient