oarepo-runtime 1.4.19__tar.gz → 1.4.21__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {oarepo-runtime-1.4.19/oarepo_runtime.egg-info → oarepo-runtime-1.4.21}/PKG-INFO +1 -1
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/asynchronous.py +12 -6
- oarepo-runtime-1.4.21/oarepo_runtime/records/__init__.py +11 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21/oarepo_runtime.egg-info}/PKG-INFO +1 -1
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/setup.cfg +1 -1
- oarepo-runtime-1.4.19/oarepo_runtime/records/__init__.py +0 -1
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/LICENSE +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/MANIFEST.in +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/README.md +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cf/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cf/cli.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cf/mappings.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cli/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cli/assets.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cli/base.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cli/check.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cli/fixtures.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cli/index.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/cli/validate.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/config/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/config/permissions_presets.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/config/service.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/catalogue.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/datastreams.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/errors.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/ext.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/fixtures.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/json.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/attachments.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/excel.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/json.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/service.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/yaml.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/synchronous.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/transformers.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/types.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/utils.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/attachments_file.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/attachments_service.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/service.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/utils.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/validation_errors.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/yaml.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/drafts/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/drafts/systemfields/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/drafts/systemfields/has_draftcheck.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/expansions/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/expansions/expandable_fields.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/expansions/service.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/ext.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/ext_config.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/facets/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/facets/base.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/facets/date.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/facets/enum.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/facets/max_facet.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/facets/nested_facet.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/facets/params.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/i18n/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/i18n/default_translations.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/i18n/dumper.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/i18n/schema.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/i18n/ui_schema.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/i18n/validation.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/marshmallow.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/profile.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/proxies.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/dumpers/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/dumpers/edtf_interval.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/systemfields/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/systemfields/icu.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/systemfields/mapping.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/base.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/components.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/errors.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/internal.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/lookup.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/mapping.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/pid_relation.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/relations/uow.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/resolvers/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/resolvers/proxies.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/resources/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/resources/localized_ui_json_serializer.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/schema/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/schema/cf.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/schema/polymorphic.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/schema/ui.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/schema/validation.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/search.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.mo +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.po +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/translations/en/LC_MESSAGES/messages.po +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/translations/messages.pot +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/ui/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/ui/marshmallow.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/uow.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/utils/__init__.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/utils/path.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime.egg-info/SOURCES.txt +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime.egg-info/dependency_links.txt +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime.egg-info/entry_points.txt +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime.egg-info/requires.txt +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime.egg-info/top_level.txt +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/pyproject.toml +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/setup.py +0 -0
- {oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/tests/pkg_data/__init__.py +0 -0
@@ -4,6 +4,7 @@ from typing import Any, Dict, List, Union
|
|
4
4
|
import celery
|
5
5
|
from celery.canvas import Signature as CelerySignature
|
6
6
|
from celery.canvas import chain
|
7
|
+
from celery.result import allow_join_result
|
7
8
|
from flask_principal import (
|
8
9
|
ActionNeed,
|
9
10
|
Identity,
|
@@ -196,13 +197,18 @@ def datastreams_call_callback(
|
|
196
197
|
|
197
198
|
@celery.shared_task
|
198
199
|
def datastreams_error_callback(
|
199
|
-
|
200
|
+
parent_task_id, *, identity=None, callback, callback_name, **kwargs
|
200
201
|
):
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
202
|
+
with allow_join_result():
|
203
|
+
from celery import current_app
|
204
|
+
result = current_app.AsyncResult(parent_task_id)
|
205
|
+
result.get(propagate=False)
|
206
|
+
|
207
|
+
callback = CelerySignature(callback)
|
208
|
+
callback.apply(
|
209
|
+
kwargs=dict(batch={}, identity=identity, callback=callback_name,
|
210
|
+
result=result.result, traceback=result.traceback, **kwargs)
|
211
|
+
)
|
206
212
|
|
207
213
|
|
208
214
|
def _serialize_identity(identity):
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from typing import Type
|
2
|
+
|
3
|
+
from invenio_records_resources.records import Record
|
4
|
+
|
5
|
+
|
6
|
+
def select_record_for_update(record_cls: Type[Record], persistent_identifier):
|
7
|
+
"""Select a record for update."""
|
8
|
+
resolved_record = record_cls.pid.resolve(persistent_identifier)
|
9
|
+
model_id = resolved_record.model.id
|
10
|
+
obj = record_cls.model_cls.query.filter_by(id=model_id).with_for_update().one()
|
11
|
+
return record_cls(obj.data, model=obj)
|
@@ -1 +0,0 @@
|
|
1
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/config/permissions_presets.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/__init__.py
RENAMED
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/attachments.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/readers/service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/datastreams/writers/service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/drafts/systemfields/__init__.py
RENAMED
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/drafts/systemfields/has_draftcheck.py
RENAMED
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/expansions/expandable_fields.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/dumpers/edtf_interval.py
RENAMED
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/systemfields/__init__.py
RENAMED
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/records/systemfields/mapping.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/schema/polymorphic.py
RENAMED
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime/services/schema/validation.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo-runtime-1.4.19 → oarepo-runtime-1.4.21}/oarepo_runtime.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|