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

Remove cron_file if WP system cron disabled #927

Merged
merged 1 commit into from
Nov 29, 2017
Merged

Conversation

fullyint
Copy link
Contributor

If a cron_file has already been created but then a user sets multisite.cron: false, these cron tasks should not skip. Rather, they should run with the parameter state: absent in order to remove the cron_file.

Example scenario: User discovers that the default of cron enabled for multisite is a problem due to a large number of sites. This PR empowers the user to disable the cron via a multisite.cron: false addition to wordpress_sites, rather than having to SSH and manually disable the cron.

Related discussion in #802

If a cron_file has already been created but then a user sets
`multisite.cron: false`, these cron tasks should not skip. Rather,
they should run with the parameter `state: absent` in order to remove
the cron_file.
Copy link
Member

@swalkinshaw swalkinshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@fullyint fullyint merged commit e0fee33 into master Nov 29, 2017
@fullyint fullyint deleted the disable-system-cron branch November 29, 2017 16:22
primozcigler added a commit to proteusthemes/pt-ops that referenced this pull request Jan 5, 2018
* trellis/master: (292 commits)
  Bump Ansible version_tested_max to 2.4.2.0 (roots#932)
  Add MariaDB 10.2 PPA
  Remove cron_file if WP system cron disabled (roots#927)
  Add Code of Conduct [ci skip]
  Expose the deploy_helper keep_releases option (roots#922)
  Close roots#580 - Switch from .dev to .test
  Update acme-tiny commit hash
  Enable select deploy configs to optionally vary by site (roots#919)
  1.0.0-rc.2
  Update to WP-CLI 1.4.1.
  Disallow duplicate site keys within a host's wordpress_sites (roots#910)
  Replace bare Dataloader() with pre-loaded play._loader (roots#917)
  Remove outdated to_unicode import from plugin utils (roots#916)
  Fix raw_vars functionality for Ansible 2.4.1 (roots#915)
  Enable ioapic
  Update vagrant_box_version to current release
  Dynamically increase ansible_group_priority for selected env (roots#909)
  Bump Ansible version_tested_max to 2.4.1.0 (roots#911)
  Clarify DB task name.
  Update wp-cli to 1.4.0.
  ...
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.

2 participants