Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,6 @@ func newWorker(o workerOpt) (*worker, error) {
return w, nil
}

// EXPERIMENTAL: DrainWorkers initiates a graceful drain of all php threads.
// Blocks until every drained thread yields. Force-kill is armed after a
// grace period to wake threads parked in blocking syscalls (sleep, I/O).
func DrainWorkers() {
drainPHPThreads()
}

// RestartWorkers attempts to restart all workers gracefully.
// All workers must be restarted at the same time to prevent issues with
// opcache resetting. Blocks until every worker thread has yielded;
Expand Down
Loading