Skip to content

Commit

Permalink
Update async_thread_pool extension to describe issue with forking (Fi…
Browse files Browse the repository at this point in the history
…xes #2131)
  • Loading branch information
jeremyevans committed Feb 7, 2024
1 parent 1a3152e commit ec33f40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/sequel/extensions/async_thread_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@
# +:preempt_async_thread+ Database option before loading the
# async_thread_pool extension.
#
# Note that the async_thread_pool extension creates the thread pool
# when it is loaded into the Database. If you fork after loading
# the extension, the extension will not work, as fork does not
# copy the thread pools. If you are using a forking webserver
# (or any other system that forks worker processes), load this
# extension in each child process, do not load it before forking.
#
# Related module: Sequel::Database::AsyncThreadPool::DatasetMethods


Expand Down

0 comments on commit ec33f40

Please sign in to comment.