Fix puppet-dashboard pending tasks

ផាប់ភិត​ដាសបត ឈប់​ដើរ​ ហើយ​ pending tasks មាន​ប្រ​ហែល​ជាង ២០០០។

# ps -ef | grep job
www-data  4799     1  0 14:07 ?        00:00:00 delayed_job.0_monitor
www-data  4804     1  0 14:07 ?        00:00:00 delayed_job.1_monitor
root      8300 31461  0 15:22 pts/0    00:00:00 grep job

មិន​ដឹង​ថា​ជាមាន​វិធី​ល្អ​ សំរាប់​ជួសជុល​បញ្ហា​នេះទេ ប៉ុន្តែខ្ញុំ​អាច ប្រើវិធីដូចនេះ

# cd /usr/share/puppet-dashboard/
# rake RAILS_ENV=production jobs:work

អោយវារត់​ យ៉ាងយូរ​ បន្ទាប់​មក puppet-dashboard-worker ក៏ចាប់ផ្តើម​ដើរវិញ

# ps -ef | grep job
www-data  4799     1  0 14:07 ?        00:00:00 delayed_job.0_monitor
www-data  4804     1  0 14:07 ?        00:00:00 delayed_job.1_monitor
www-data  5089     1 24 14:15 ?        00:20:43 dashboard/delayed_job.0
www-data  5094     1 24 14:15 ?        00:20:45 dashboard/delayed_job.1
root      8570 31461  0 15:41 pts/0    00:00:00 grep job

Leave a Reply

Your email address will not be published. Required fields are marked *