psu-libraries / scholarsphere-3

A web application for ingest, curation, search, and display of digital assets. Powered by Hydra technologies (Rails, Hydra-head, Blacklight, Solr, Fedora Commons, etc.)
Apache License 2.0
78 stars 24 forks source link

Sufia::Arkivo::CreateSubscriptionJob is being called with the wrong id #769

Closed carolyncole closed 7 years ago

carolyncole commented 7 years ago

It looks like since we have overriden user key we are getting the wrong input to the job:

when I run it this way it works properly:

irb(main):001:0> Sufia::Arkivo::CreateSubscriptionJob.perform_now("cam156") 2017-04-19 10:04:35 -0400 (5187) Performing Sufia::Arkivo::CreateSubscriptionJob from Resque(default) with arguments: "cam156" 2017-04-19 10:04:36 -0400 (5187) Performed Sufia::Arkivo::CreateSubscriptionJob from Resque(default) in 516.82ms => true

Worker ssjobs1qa:18498 on default at 2017/04/19 10:00:04 -0400 Retry or Remove Class ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper Arguments

job_class: Sufia::Arkivo::CreateSubscriptionJob job_id: 8a3cfc75-aba5-4b15-9a5d-e9506ed1ab93 queue_name: default arguments:

carolyncole commented 7 years ago

After clicking the connection online you can see that the connection has been made because the user has both the zotero_userid set and the arkivo_subscription set

screen shot 2017-05-09 at 2 44 29 pm