I've set up a development instance of Bibapp, and have managed to work out most errors. I've tried to export an XML file formatted for Refworks, from Endnote, and have imported it into Bibapp. The job has been stuck in processing since yesterday afternoon. Is there a way I can stop it and perhaps try again? I've looked at most previous threads on here, but have not been successful so far.
I'd appreciate any advice.
--
You received this message because you are subscribed to the Google Groups "bibapp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bibapp+un...@googlegroups.com.
To post to this group, send email to bib...@googlegroups.com.
Visit this group at http://groups.google.com/group/bibapp.
For more options, visit https://groups.google.com/d/optout.
Hi Evan,I don't believe that the rake task will actually clear out the job listing on the imports page.One other thing to double check is if you have setup your instance to correctly send mail. Did you configure smtp.yml?From past experience, when the import does not finish and I don't receive the email indicating that it's done there's been a problem with the app sending mail.-John
On Thursday, March 13, 2014 6:50:29 PM UTC-4, Evan Laszlo wrote:
What's odd is that when I run:
bundle exec rake jobs:clear RAILS_ENV=development
it is clearing the jobs from the bibapp_development.delayed_jobs table, yet they still show under the IMPORTS window.
On Thursday, March 13, 2014 2:04:51 PM UTC-7, Jason Stirnaman wrote:
Evan,There's a rake task for that :)rake jobs:clearSpecifically, from the command line, you'll probably want to runbundle exec rake jobs:clear RAILS_ENV=developmentThat should clear existing jobs from the delayed_job queue in your development database.You can see all the available tasks with bundle exec rake -T
Restarting BibApp should always restart delayed_job - that's the queue worker that handles background jobs. However, once restarted it will pick up the job from the database and try again. So, you'll need to remove that job from the database using the rake task.If it doesn't work for you, let us know.
Jason
On Mar 13, 2014, at 1:39 PM, Evan Laszlo <laszl...@gmail.com> wrote:
I've set up a development instance of Bibapp, and have managed to work out most errors. I've tried to export an XML file formatted for Refworks, from Endnote, and have imported it into Bibapp. The job has been stuck in processing since yesterday afternoon. Is there a way I can stop it and perhaps try again? I've looked at most previous threads on here, but have not been successful so far.
I'd appreciate any advice.
--
You received this message because you are subscribed to the Google Groups "bibapp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bibapp+un...@googlegroups.com.
To post to this group, send email to bib...@googlegroups.com.
Visit this group at http://groups.google.com/group/bibapp.
For more options, visit https://groups.google.com/d/optout.
Development environment doesn't send emails by default. To change that, look at config/environments/development.rb
Re: imports,
That Import row will still get stuck with status "processing", but it should be removed from the delayed_job queue.
You can attempt to re-import and watch your delayed-job.log to find out what's going wrong.
You can inspect, requeue, or remove that import job through Rails console,
bundle exec rails c development
Some examples:
Read your raw import file:
> Import.first.read_import_file
Process your import and watch it fail from the console:
> Import.find([your_import_id]).batch_import
Requeue your import:
> Import.find([your_import_id]).queue_import
Or, delete your import record entirely:
> Import.destroy([your_import_id])
I don't think there's anything in the UI for #destroy.
Jason