Repository navigation
Release v1.3.0: async actions, phase 2 - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releases Async Actions phase 2 as v1.3.0, and covers it in a real WordPress.
Real-WordPress tests (5 new, 18 in total, WP-Cron in a separate process)
capture(): the trigger-time status and a request value ($_POST, sanitized) are read back at execution, beside the post reloaded in its new state.when(): a revision does not queue; the post does.unique(): two identical triggers give one event and one non-autoloaded lock; after the run the lock is gone and a new trigger queues again.asUser(): the handler runs as user 1 with that user's capabilities (current_user_can('edit_posts')). Without it,currentUseris 0 (added to the first test).tries()through WP-Cron: the retry runs on the next cron run, attempts 1 then 2.Plus, from #12 to #14: Action Scheduler (4 tests), closures (2),
fake()(1).Release
[1.3.0] - 2026-10-07, with the comparison links. Under "Changed", the move of the default driver toauto(Action Scheduler when available) is highlighted, withPOLLORA_ASYNC_DRIVER=wp-cronto keep the previous behaviour.capture()andwhen(), the full options table, the three drivers andauto, signed closures, retries andAsync::fake().Content since v1.2.0: #9, #10, #11, #12, #13, #14. The framework suite (1,822 tests) passes with this code swapped into its
vendor/(restored afterwards).