Skip to content

DataCite events shoudl use EPrints::DataObj::EventQueue->create_unique #68

Description

@drn05r

The following lines use create_dataobj, when they should use create_unique. This would save multiple instances of the same task being created:

$repo->dataset( "event_queue" )->create_dataobj({
pluginid => "Event::DataCiteEvent",
action => "datacite_doi",
params => [ $dataobj->internal_uri, $dataobj_doi ],
});

$repo->dataset( "event_queue" )->create_dataobj({
pluginid => "Event::DataCiteEvent",
action => "datacite_doi",
params => [ $dataobj->internal_uri, $dataobj_doi ],
});

$dc = $datacite_ds->create_dataobj(
{
datasetid => $class,
objectid => $dataobj->id
}
);

Also, they will benefit from the web (i..e user) request prioritisation of event queue tasks in eprints/eprints3.4#581 coming in EPrints v3.4.8.

Change should just be a simple replacement of create_dataobj with create_unique.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions