Metadata-Version: 2.2
Name: invenio-jobs
Version: 3.0.1
Summary: InvenioRDM module for jobs management
Home-page: https://github.com/inveniosoftware/invenio-jobs
Author: CERN
Author-email: info@inveniosoftware.org
License: MIT
Keywords: invenio rdm celery jobs
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.7
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: invenio-administration<4.0.0,>=3.0.0
Requires-Dist: invenio-base<3.0.0,>=2.0.0
Requires-Dist: invenio-celery<3.0.0,>=2.0.0
Requires-Dist: invenio-i18n<4.0.0,>=3.0.0
Requires-Dist: invenio-records-resources<8.0.0,>=7.0.0
Requires-Dist: invenio-users-resources<8.0.0,>=7.0.0
Provides-Extra: tests
Requires-Dist: invenio-app<3.0.0,>=2.0.0; extra == "tests"
Requires-Dist: invenio-db[mysql,postgresql]<3.0.0,>=2.0.0; extra == "tests"
Requires-Dist: pytest-invenio<4.0.0,>=3.0.0; extra == "tests"
Requires-Dist: pytest-black-ng>=0.4.0; extra == "tests"
Requires-Dist: sphinx>=4.5.0; extra == "tests"
Provides-Extra: elasticsearch7
Requires-Dist: invenio-search[elasticsearch7]<4.0.0,>=3.0.0; extra == "elasticsearch7"
Provides-Extra: opensearch1
Requires-Dist: invenio-search[opensearch1]<4.0.0,>=3.0.0; extra == "opensearch1"
Provides-Extra: opensearch2
Requires-Dist: invenio-search[opensearch2]<4.0.0,>=3.0.0; extra == "opensearch2"

..
    Copyright (C) 2024 CERN.

    Invenio-Jobs is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

==============
 Invenio-Jobs
==============

.. image:: https://github.com/inveniosoftware/invenio-jobs/workflows/CI/badge.svg
        :target: https://github.com/inveniosoftware/invenio-jobs/actions?query=workflow%3ACI

.. image:: https://img.shields.io/github/tag/inveniosoftware/invenio-jobs.svg
        :target: https://github.com/inveniosoftware/invenio-jobs/releases

.. image:: https://img.shields.io/pypi/dm/invenio-jobs.svg
        :target: https://pypi.python.org/pypi/invenio-jobs

.. image:: https://img.shields.io/github/license/inveniosoftware/invenio-jobs.svg
        :target: https://github.com/inveniosoftware/invenio-jobs/blob/master/LICENSE

InvenioRDM module for jobs management

Usage
=====

This module adds a custom scheduler to schedule jobs that exist in the local database.

To use this scheduler, the following command can be ran locally:

.. code-block:: console

    $ celery -A invenio_app.celery beat -l ERROR --scheduler invenio_jobs.services.scheduler:RunScheduler -s /var/run/celery-schedule --pidfile /var/run/celerybeat.pid

Jobs can be managed through the administration view in the Invenio instance. By default, this view is disabled and can be enabled by adding the following configuration to the Invenio instance:

.. code-block:: python

    JOBS_ADMINISTRATION_ENABLED = True


More Help
---------

Further documentation is available on
https://invenio-jobs.readthedocs.io/

..
    Copyright (C) 2024 CERN.
    Copyright (C) 2024 Graz University of Technology.

    Invenio-Jobs is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

Changes
=======

Version v3.0.1 (released 2025-03-10)

- ui: rename job run button label (ux improvement)

Version v3.0.0 (released 2025-02-13)

- Promote to stable release.

Version v3.0.0.dev2 (released 2025-01-23)

Version v3.0.0.dev1 (released 2024-12-12)

- fix: alembic problem
- setup: change to reusable workflows
- setup: bump major dependencies
- tasks: use utcnow

Version v2.0.0 (released 2024-10-14)

- job types: refactor public method name (breaking change)

Version v1.1.0 (released 2024-10-10)

- webpack: bump react-searchkit

Version v1.0.0 (released 2024-09-27)

- db: change tables names
- global: add jobs registry
- interface: add job types

Version v0.5.1 (released 2024-09-19)

- fix: add compatibility layer to move to flask>=3

Version v0.5.0 (released 2024-08-22)

- bump invenio-users-resources

Version v0.4.0 (released 2024-08-22)

- package: bump react-invenio-forms (#52)

Version v0.3.4 (released 2024-08-08)

- fix: pass args to task via run

Version v0.3.3 (released 2024-08-08)

- fix: utils: only eval strings

Version 0.3.2 (released 2024-07-24)

- UI: fix schedule save
- UI: fix default queue; don't error on empty args

Version 0.3.1 (released 2024-07-11)

- services: skip index rebuilding

Version 0.3.0 (released 2024-06-20)

- UI: Added create, edit and schedule options
- fix: only show stop button when task is running
- bug: fix display of durations
- global: support Jinja templating for job args
- config: rename enabled flag
- config: disable jobs view by default

Version 0.2.0 (released 2024-06-05)

- translations: added translations folder
- scheduler: filter jobs with a schedule
- service: pass run queue to task

Version 0.1.0 (released 2024-06-04)

- Initial public release.
