discourse/lib/plugin
David Taylor 1d024f77a6
FEATURE: Allow plugins to register demon processes (#11493)
This allows plugins to call `register_demon_process` with a Class inheriting from Demon::Base. The unicorn master process will take care of spawning, monitoring and restarting the process. This API should be used with extreme caution, but it is significantly cleaner than spawning processes/threads in an `after_initialize` block.

This commit also cleans up the demon spawning logging so that it uses the same format as unicorn worker logging. It also switches to the block form of `fork` to ensure that Demons exit after running, rather than returning execution to where the fork took place.
2020-12-16 09:43:39 +00:00
..
filter_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
filter.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
instance.rb FEATURE: Allow plugins to register demon processes (#11493) 2020-12-16 09:43:39 +00:00
metadata.rb DEV: Make discourse-subscriptions official (#11103) 2020-11-02 12:59:30 -06:00