Class: GDK::Diagnostic::Workerd
- Defined in:
- lib/gdk/diagnostic/workerd.rb
Constant Summary collapse
- TITLE =
'Workerd process check'- MAX_ALLOWED_WORKERD_PROCESSES =
2
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#detail ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/gdk/diagnostic/workerd.rb', line 13 def detail return if success? <<~DETAIL There are #{lingering_pids.count} `workerd` processes running but there should only be #{MAX_ALLOWED_WORKERD_PROCESSES} running at max. If your GDK has trouble booting, run the following command to kill all `workerd` processes: kill -9 #{lingering_pids.join(' ')} DETAIL end |
#success? ⇒ Boolean
9 10 11 |
# File 'lib/gdk/diagnostic/workerd.rb', line 9 def success? !too_many_processes? end |