You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- BackgroundScope -> Scope (and NextScope / WithRequestScope /
WithWorkerScope), keeping the type opaque + reusable for other
per-server isolation contexts (Mercure hubs, future Prometheus
labels). No behaviour change.
- $_SERVER['FRANKENPHP_WORKER'] now carries the user-facing worker
name instead of "1". The doc has always told callers to rely on
presence, not value. Drops the parallel FRANKENPHP_WORKER_NAME
injection.
- backgroundWorkerReady.abortErr keeps the full error (not just its
message), so the wrap chain survives into ensure() callers.
- Cap-error wording: drop the Caddyfile-specific "max_threads on the
catch-all" phrasing for "increase max threads or declare it as a
named worker", to read cleanly when the user is on the JSON config.
- Constants merged into a single block; getLookup folds the worker /
background-worker handler cases via a small anonymous interface
(Go's type switch can't fan out type-asserted access otherwise).
- Stub doc nits: third-person godoc ("Declares" / "Returns").
- Test ergonomics: requireSentinelEventually wraps the duplicated
Eventually glue; require.NoFileExists, require.ErrorContains,
assert.WithinDuration replace ad-hoc combinations.
- Renamed background_worker_*_test.go to bgworker*_test.go to match
the bgworker.go source file (no underscores in file-name prefixes).
returnfmt.Errorf("cannot start background worker %q: limit of %d reached (increase max_threads on the catch-all background worker or declare it as a named worker)", bgWorkerName, catchAll.catchAllCap)
231
+
returnfmt.Errorf("cannot start background worker %q: limit of %d reached (increase max threads or declare it as a named worker)", bgWorkerName, catchAll.catchAllCap)
232
232
}
233
233
234
234
t:=getInactivePHPThread()
235
235
ift==nil {
236
236
catchAll.catchAllMu.Unlock()
237
-
returnfmt.Errorf("no available PHP thread for background worker (increase max_threads)")
237
+
returnfmt.Errorf("no available PHP thread for background worker (increase max threads)")
0 commit comments