Job registry #203
Annotations
4 errors
tests/resources/test_resources.py#L81
test_simple_flow
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T14:26:25.236289+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': 'Test description',
'id': '9cac3400-85d6-4925-a945-1431efd551d7',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/9cac3400-85d6-4925-a945-1431efd551d7/runs',
'self': 'https://127.0.0.1:5000/api/jobs/9cac3400-85d6-4925-a945-1431efd551d7',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/9cac3400-85d6-4925-a945-1431efd551d7'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test job',
'updated': '2024-09-11T14:26:25.271254+00:00',
}
|
tests/resources/test_resources.py#L315
test_jobs_search
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T14:26:25.649231+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': None,
'id': '572b8397-9f62-4710-9af8-40478a420940',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/572b8397-9f62-4710-9af8-40478a420940/runs',
'self': 'https://127.0.0.1:5000/api/jobs/572b8397-9f62-4710-9af8-40478a420940',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/572b8397-9f62-4710-9af8-40478a420940'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test interval job',
'updated': '2024-09-11T14:26:25.649242+00:00',
}
|
invenio_jobs/services/schema.py#L1
isort-check
from invenio_i18n import lazy_gettext as _
from invenio_users_resources.services import schemas as user_schemas
-from marshmallow import (
- EXCLUDE,
- Schema,
- fields,
- post_load,
- pre_dump,
- pre_load,
- validate,
-)
+from marshmallow import EXCLUDE, Schema, fields, post_load, pre_dump, pre_load, validate
from marshmallow_oneofschema import OneOfSchema
from marshmallow_utils.fields import SanitizedUnicode, TZDateTime
from marshmallow_utils.permissions import FieldPermissionsMixin
|
|
This job failed
Loading