Metadata-Version: 2.1
Name: invenio-jobs
Version: 1.1.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 :: 3 - Alpha
Requires-Python: >=3.7
Requires-Dist: invenio-administration <3.0.0,>=2.0.0
Requires-Dist: invenio-base <2.0.0,>=1.3.0
Requires-Dist: invenio-celery <2.0.0,>=1.2.4
Requires-Dist: invenio-i18n <3.0.0,>=2.0.0
Requires-Dist: invenio-records-resources <7.0.0,>=6.0.0
Requires-Dist: invenio-users-resources <7.0.0,>=6.0.0
Provides-Extra: elasticsearch7
Requires-Dist: invenio-search[elasticsearch7] <3.0.0,>=2.1.0 ; extra == 'elasticsearch7'
Provides-Extra: opensearch1
Requires-Dist: invenio-search[opensearch1] <3.0.0,>=2.1.0 ; extra == 'opensearch1'
Provides-Extra: opensearch2
Requires-Dist: invenio-search[opensearch2] <3.0.0,>=2.1.0 ; extra == 'opensearch2'
Provides-Extra: tests
Requires-Dist: invenio-app <2.0.0,>=1.4.0 ; extra == 'tests'
Requires-Dist: invenio-db[mysql,postgresql] <2.0.0,>=1.1.0 ; extra == 'tests'
Requires-Dist: pytest-invenio <3.0.0,>=2.1.0 ; extra == 'tests'
Requires-Dist: pytest-black-ng >=0.4.0 ; extra == 'tests'
Requires-Dist: sphinx >=4.5.0 ; extra == 'tests'

..
    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.

    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 v1.1.1 (released 2024-12-09)

- tasks: use utcnow to avoid timezone issues with the Celery scheduler

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.


