Skip to content

CKAN background jobs will throw an exception when publishing DOI #103

@MarkCalvert

Description

@MarkCalvert

Description
CKAN background jobs can update datasets (e.g. embargo releases), which trigger the after_dataset_update interface.
Flash messages will fail in background jobs and only work from web requests.

Expected Behaviour
No exceptions thrown when a DOI is published from a CKAN background job.

To Reproduce
Create a CKAN background job to update a dataset from private to public

Error Log
Paste any relevant error logs below:

Working outside of request context

Your Setup

  • CKAN version: [e.g. 2.10.3]

Anything Else?
Proposed solution #102

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions