Skip to content

Unexpected return values from DataCiteEvent::datacite_doi #57

Description

@jesusbagpuss

[NB the following was discovered by code inspection, and probably doesn't make anything specifically 'broken' - but reporting of failures would be improved by resolving this]

The following lines return unexpected values:

The return value from an EventQueue action should be an HTTP code:
https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj/EventQueue.pm#L138-L151

I think that if an event action dies then the error gets logged in the EventQueue object's description field.

Resolution would be to:

  • set an expected return code
  • set the EventQueue 'desciption' field to include useful information (visible in the EPrints interface when viewing tasks)
  • use $repo->log to make something appear in indexer.log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions