Commit 71d7701
committed
fix: remove duplicate AS enqueue from stale-flag reset path
When check_pending_site_created() detects a stale is_publishing flag,
it was both enqueuing a new wu_async_publish_pending_site action AND
returning publish_status=stopped to the frontend. This created two
competing retry sources: the frontend polling loop (which retries on
stopped, then reloads to kick cron) and the explicitly enqueued AS job.
Both paths can trigger publish_pending_site() concurrently, risking a
race condition where site creation is attempted twice simultaneously.
Remove the wu_enqueue_async_action call. The frontend stopped response
already handles retry (3 polls then page reload kicks cron), and the
Action Scheduler will retry on the next cron run without an explicit
enqueue.
Fixes #7931 parent 3d73e0f commit 71d7701
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | | - | |
226 | | - | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| |||
0 commit comments