Changes between Version 5 and Version 6 of Ticket #1397
- Timestamp:
- 10/14/11 14:18:56 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1397
- Property Priority changed from awaiting triage to major
- Property Milestone changed from ckan-sprint-2011-10-24 to ckan-v1.6
-
Ticket #1397 – Description
v5 v6 6 6 7 7 * Add task_status table to store qa/archiever/webstore information that does not need to be versioned. - #1363 (and #1371 - related logic functions) 8 === Configuration setup for daemons === 8 9 9 == Tasks == 10 * Standard ini file 11 * Sections are named after daemon / extension. E.g. [my-daemon] 12 * Arbitrary values but anticipate at least 2 stanard values: 13 * ckan_url e.g. http://thedatahub.org/ 14 * ckan_apikey e.g. xxxxxx 15 * celery_config 16 17 celeryd config: 18 19 All providers of tasks will add an item to the following entry point: 20 21 {{{ 22 [ckan.tasks] 23 name = ckanext.{name}.tasks:.... 24 }}} 25 26 celeryconfig.py 27 28 {{{ 29 from pkg_resources import iter_entry_points 30 for entry in iter_entry_points: 31 celeryimports.appen(....) 32 33 CELERY_IMPORTS = celeryimports 34 }}} 35 36 == Work Items == 10 37 11 38 1. Resource change notifications in core - Make an IResourceChange and IResourceUrlChange. [1d] [0.75d] - #1383 12 2. ckanext-archiver implements IResourceUrlChange and sends tasks to celery. [0.25d][0.25d] - ???39 2. Generate archiving request on resource url change [0.25d][0.25d] - #1399 13 40 3. Archiver daemon #891 14 41 1. implement link-check function and task (point 2 from Archiver.update above) [1d] [0.5d] 15 42 2. Rewrite archiver to use external storage. (decide how!)[3d][~2d] 16 43 5. Write to resource and task status table.[1d][0.75d] 17 6. Make archived data available in WUI - #892 44 6. [Required?] Make archived data available in WUI - #892 45 7. Documentation - #1400 18 46 19 47 == Archiver process == 20 48 21 Archiver: 22 23 0. A resource is added to CKAN 24 1. IResourceCreate event generated 25 2. IF: resource url points to ckan storage or falls within some other set of exclusion conditions then END else continue 26 3. Generate a Archiver.Update task with resource.id 49 Generate archiving request on resource url change: # 27 50 28 51 Archiver.update: see #891