Skip to content

PeeStream WordPress & DooPlay Addon v1.0.2

Choose a tag to compare

@inside83 inside83 released this 11 Nov 19:56
· 20 commits to master since this release

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:

  1. 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.
  2. 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.
  3. Verified Post Meta Persistence:
    • In both manual AJAX and background WP-Cron queue processing, DooPlay repeatable_fields updates are strictly verified (fresh_meta === target_meta) before marking queue items as completed.
  4. Partial Failure Recovery & Crash Protection:
    • Backups are written with status in_progress prior to post modification and promoted to completed only after post meta is confirmed saved.
    • Added recover_partial_failures() to automatically identify and flag interrupted jobs as apply_failed without corrupting post data.
  5. Legacy Backup Mode Migration & Rollback Safeguards:
    • Enforced DEFAULT 'unknown' on schema version 103 for the backup mode column; migrated historical empty backup modes to 'unknown'.
    • In ajax_rollback(), if an old backup recorded mode as replace but the original URL is already present in the post, it is safely reclassified to primary to avoid server duplication.
  6. Webhook Crash Recovery & Draft Deduplication:
    • Added immediate post link persistence (_peestream_webhook_filecode and post_id audit column) right after wp_insert_post().
    • Subsequent webhook retries re-use existing draft posts, preventing duplicate post creation.
  7. Decoupled DB Schema Versioning:
    • Upgraded to DB_SCHEMA_VERSION = 103, saving the schema option strictly after all tables and column modifications return verified success.

Checksums:

  • Archive: peestream-wp-dooplay_v1.0.2.zip
  • SHA-256: 8e7bbcbd49183915730c5e658ddb3e959fc14333cdd3ccc28d1010ea7fe50cb2