Repository navigation
PeeStream WordPress & DooPlay Addon v1.0.2
PeeStream WordPress & DooPlay Addon v1.0.2
Official verified stable release addressing all architectural and concurrency review findings.
Note: Version 1.0.1 was a pre-release build pending final architectural review. Version 1.0.2 is the recommended, fully verified production release.
Key Fixes and Hardening:
- Queue Lock Lease Extension & Time Budgeting:
- Replaced fixed 120s queue lock timeout with per-task heartbeat lease extension (
extend_lock) and batch time budgeting (max_execution_time). - Slow API responses can no longer cause an active worker's lock to expire and be usurped by a concurrent worker.
- Replaced fixed 120s queue lock timeout with per-task heartbeat lease extension (
- Owner-Token Conditional Atomic Lock Release:
- Implemented conditional atomic SQL deletion (
DELETE FROM wp_options WHERE option_name = %s AND option_value LIKE %s). - Workers strictly release only their own lock tokens, preventing interference with active workers.
- Implemented conditional atomic SQL deletion (
- Verified Post Meta Persistence:
- In both manual AJAX and background WP-Cron queue processing, DooPlay
repeatable_fieldsupdates are strictly verified (fresh_meta === target_meta) before marking queue items ascompleted.
- In both manual AJAX and background WP-Cron queue processing, DooPlay
- Partial Failure Recovery & Crash Protection:
- Backups are written with status
in_progressprior to post modification and promoted tocompletedonly after post meta is confirmed saved. - Added
recover_partial_failures()to automatically identify and flag interrupted jobs asapply_failedwithout corrupting post data.
- Backups are written with status
- Legacy Backup Mode Migration & Rollback Safeguards:
- Enforced
DEFAULT 'unknown'on schema version 103 for the backupmodecolumn; migrated historical empty backup modes to'unknown'. - In
ajax_rollback(), if an old backup recorded mode asreplacebut the original URL is already present in the post, it is safely reclassified toprimaryto avoid server duplication.
- Enforced
- Webhook Crash Recovery & Draft Deduplication:
- Added immediate post link persistence (
_peestream_webhook_filecodeandpost_idaudit column) right afterwp_insert_post(). - Subsequent webhook retries re-use existing draft posts, preventing duplicate post creation.
- Added immediate post link persistence (
- Decoupled DB Schema Versioning:
- Upgraded to
DB_SCHEMA_VERSION = 103, saving the schema option strictly after all tables and column modifications return verified success.
- Upgraded to
Checksums:
- Archive:
peestream-wp-dooplay_v1.0.2.zip - SHA-256:
8e7bbcbd49183915730c5e658ddb3e959fc14333cdd3ccc28d1010ea7fe50cb2