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

Lock Push Updates #1081

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Lock Push Updates #1081

wants to merge 1 commit into from

Conversation

steveyken
Copy link
Member

Provide a way to lock push_updates and prevent them from being processed.

Background

In some maintenance scripts, we are doing bulk updates and do not wish to send a multitude of push_updates.

With this (untested) code, you can prevent push updates with the following:

PushUpdates.locked = true
<bulk actions>
PushUpdates.locked = false

or use the inbuilt locked function:

PushUpdates.locked do
  <bulk action>
end

Credits

@patrixr for actually writing the code.

@steveyken steveyken requested a review from patrixr August 28, 2020 04:22
@steveyken steveyken marked this pull request as draft August 28, 2020 04:22
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.

1 participant