Skip to content

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.

2 participants