我正在生产中运行Sidekiq 5.1.1,我有一个sidekiq工人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
令人惊讶的是,它成功完成了这项工作。 有什么原因会发生这种情况? 我怀疑可能是因为内存问题可能吗?
谢谢