我正在通过sidekiq
上的活动作业来设置cloud66
。我安排了工作,并且在本地工作正常,但是在cloud66
上给出了错误。
我还放置了异常处理,但是看不到编码错误。
错误:
TID-19444p发送提醒作业JID-e5ec7d67a0d89f09cb28d8e2 INFO: start sidekiq.log — 11965年TID-19444p发送提醒工作 JID-e5ec7d67a0d89f09cb28d8e2信息:失败:0.007秒sidekiq.log — 11965 TID-19444p警告:{“上下文”:“职位已提出 exception“,” job“:{” class“:” ActiveJob :: QueueAdapters :: SidekiqAdapter :: JobWrapper“,” wrapped“:” SendingRemindersJob“,” queue“:” reminders“,” args“:[{” job_class“ :“ SendingRemindersJob”,“ job_id”:“ a8493a7c-b05d-42c0-abf1-ea4b2079346a”,“ provider_job_id”:null,“ queue_name”:“提醒”,“ priority”:null,“ arguments”:[[1], “ 1”,1,“ 2019-01-31 06:09:01 UTC“],” executions“:0,” locale“:” en“}],” retry“:true,” jid“:” e5ec7d67a0d89f09cb28d8e2“,” created_at“:1548914857.7527065,” enqueued_at“:1548915600.3969836,” error_message“: “未初始化 不变 SendingRemindersJob“,” error_class“:” NameError“,” failed_at“:1548914941.2146854,” retry_count“:4,” retried_at“:1548915278.9804192},” jobstr“:” {\“ class \”:\“ ActiveJob :: QueueAdapters :: SidekiqAdapter :: JobWrapper \“,\”包装\“:\” SendingRemindersJob \“,\”队列\“:\”提醒\“,\” args \“:[{\” job_class \“:\” SendingRemindersJob \“ ,\“ job_id \”:\“ a8493a7c-b05d-42c0-abf1-ea4b2079346a \”,\“ provider_job_id \”:null,\“ queue_name \”:\“提醒\”,\“ priority \”:null,\ “ arguments \”:[[1],\“ 1 \”,1,\“ 2019-01-31 06:09:01 UTC \“],\” executions \“:0,\” locale \“:\” en \“}],\” retry \“:true,\” jid \“:\” e5ec7d67a0d89f09cb28d8e2 \“,\” created_at \“:1548914857.7527065,\” enqueued_at \“:1548915600.3969836,\” error_message \“:\”未初始化 不变 SendingRemindersJob \“,\” error_class \“:\” NameError \“,\” failed_at \“:1548914941.2146854,\” retry_count \“:4,\” retried_at \“:1548915278.9804192}”} sidekiq.log — 11965 TID-19444p
WARN:NameError:未初始化的常量SendingRemindersJob
因此,请帮助我解决此问题,并使其在本地环境中顺利运行。谢谢。