-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archiver doesn't cache resources #67
Comments
CKAN 2.8 does not have celery anymore, you should use job workers instead https://docs.ckan.org/en/2.8/maintaining/background-tasks.html#running-background-jobs |
Thanks, @Zharktas it worked! but how can I show the archive information in the resource page? just like the picture in the readme https://github.com/ckan/ckanext-archiver/blob/master/archiver_resource.png |
Dear all, |
@marcoingrosso First you need to set up Redis backend, for storing the Celery queue items - detailed here: https://github.com/ckan/ckanext-archiver/blob/e72dcccc1c02d36bf136792e68784458e9ab1e8d/README.rst#redis-backend Second you need to run the Celery queue. This is described here: https://github.com/ckan/ckanext-archiver/blob/e72dcccc1c02d36bf136792e68784458e9ab1e8d/README.rst#using-archiver |
Dear David, I have two queues launched with following commands (in 2 different shells):
Trying to archive with following command:
Still no resources archived. If I try a test:
the result is an error:
Any suggestions please? Thanks in advance, Marco |
just resolved enabling job workers in this way:
and
I suggest to update ckanext-archiver setup guide, separating the two setup procedures for ckan 2.8 (with job workers, including an example on how to enable the 2 queues) and older ckan (with celery). Best regards! |
@marcoingrosso I believe archiver is only written to use celery queues, so What you're doing seems riht. I'm not sure what to suggest here apart from stepping into what happens when you do the |
@davidread Migration to jobs system was done in #55 :) |
@Zharktas Great to hear it! Perhaps the readme might need a bit more emphasis on the new jobs and only mention celery in terms of backward compatibilty. |
I'm running ckan 2.8 on apache2, I have installed the archiver following the instructions and configured job workers to run the queues in the background.
when I run
paster --plugin=ckanext-archiver archiver update --queue=priority -c <path to CKAN config>
it shows me this result:but when I see view archival information by running:
paster --plugin=ckanext-archiver archiver view --config=production.ini
it shows that 0 resources are archived.I need to archive the resources and make information appear on the resource page.
The text was updated successfully, but these errors were encountered: