Sidekiq在生产中自动重启

时间:2018-03-11 15:57:14

标签: ruby-on-rails ruby sidekiq

我在生产中运行Sidekiq 5.1.1,我有一个sidekiq worker BulkImportWorker ,它将学生从xls文件导入数据库。当我运行 BulkImportWorker sidekiq在执行期间自动重启并且sidekiq日志给出

2018-03-11T15 TID-gp7akpjsw BulkImportWorker JID-c0d9b5a157eeb7f118ab577f INFO: start

2018-03-11T15 TID-gp798yfls INFO: Shutting down
2018-03-11T15 TID-gp798yfls INFO: Terminating quiet workers
2018-03-11T15 TID-gp7akpiqg INFO: Scheduler exiting...
2018-03-11T15 TID-gp798yfls INFO: Pausing to allow workers to finish...
2018-03-11T15 TID-gp798yfls WARN: Terminating 1 busy worker threads
2018-03-11T15 TID-gp798yfls WARN: Work still in progress [#<struct Sidekiq::BasicFetch::UnitOfWork queue="queue:default", job="{\"class\":\"BulkImportWorker\",\"args\":[99,12,87],\"retry\":true,\"queue\":\"default\",\"jid\":\"c0d9b5a157eeb7f118ab577f\",\"created_at\":1520781182.8117564,\"enqueued_at\":1520781182.8123767}">]
2018-03-11T15 TID-gp798yfls INFO: Pushed 1 jobs back to Redis
2018-03-11T15 TID-gp798yfls INFO: Bye!
2018-03-11T15 TID-gn69i0f54 INFO: Running in ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
2018-03-11T15 TID-gn69i0f54 INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-03-11T15 TID-gn69i0f54 INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-03-11T15 TID-gn69i0f54 INFO: Booting Sidekiq 5.1.1 with redis options {:id=>"Sidekiq-server-PID-21092", :url=>nil}
2018-03-11T15 TID-gn69i0f54 INFO: Loading Schedule
2018-03-11T15 TID-gn69i0f54 INFO: Schedule empty! Set Sidekiq.schedule
2018-03-11T15 TID-gn69i0f54 INFO: Schedules Loaded
2018-03-11T15 TID-gn6aoo3ps BulkImportWorker JID-c0d9b5a157eeb7f118ab577f INFO: start
2018-03-11T15 TID-gn6aoo3ps BulkImportWorker JID-c0d9b5a157eeb7f118ab577f INFO: done: 4.518 sec

令人惊讶的是,它成功地完成了工作。这有什么原因发生?我怀疑可能是因为内存问题可能会出现?

由于

0 个答案:

没有答案