Ticket #1483 (closed defect: fixed)
Tasks sometimes fail to update task_status table when trying to report a failure
Reported by: | johnglover | Owned by: | johnglover |
---|---|---|---|
Priority: | minor | Milestone: | ckan-sprint-2011-12-19 |
Component: | ckan | Keywords: | task |
Cc: | Repository: | ckan | |
Theme: | none |
Description (last modified by johnglover) (diff)
The error reports do not have a "value". The original task in the task status table is not made and it tries to make a new task, but can't.
Issue: why is the original task_status entry not made?
kindly: there is a chance of course that the task is quicker than the plugin to get to the point where it needs to update the table.
kindly: so we may have to find a way to update the task status before we run the task.
kindly: I think you can supply a task_id to celery. i.e we make our own guid as the task id. So we can use that one to populate the task status.
Change History
comment:2 Changed 2 years ago by johnglover
- Milestone changed from ckan-sprint-2011-12-05 to current-ckan-sprint-2011-12-19
comment:3 Changed 2 years ago by johnglover
- Status changed from new to closed
- Resolution set to fixed
Fixed.
Updated logic layer: https://github.com/okfn/ckan/commit/520959ca6f83586d33cf7d4015d625a776ee46a1
Updated tasks (qa, archiver, webstorer): https://github.com/okfn/ckanext-qa/commit/78cbf5c6d16225e1580aee23fdf884f88d2475f5 https://github.com/okfn/ckanext-qa/commit/8553348942adad0babd4bdd91820c1d75a1784a7
https://github.com/okfn/ckanext-archiver/commit/8ed419280bd7f2e66aeb4f17f3f546d941fe11fb
https://github.com/okfn/ckanext-webstorer/commit/d16fb090533a716c856e59838f79bbaa0ea42e76