oarepo_config.jobs
oarepo_config.jobs
Configuration for the Jobs feature.
configure_jobs(permission_policy: str | type | None = None, logging_level: str | None = None) -> None
Set up the "Jobs" feature (manually or automatically run administrative tasks).
Invenio-jobs lets administrators run and monitor maintenance tasks (such as re-indexing or fixing up data) from the admin panel, and view their logs. This decides who is allowed to view those job logs and how detailed the logs are.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
permission_policy
|
str | type | None
|
Who is allowed to view job logs. By default, only administrators can. Pass your own permission policy class (or its import path as a string) to change this. |
None
|
logging_level
|
str | None
|
How detailed the job logs should be, e.g.
|
None
|
Invenio configuration variables set:
APP_LOGS_PERMISSION_POLICY- thepermission_policyabove.JOBS_LOGGING_LEVEL- thelogging_levelabove.