forked from CERNDocumentServer/cds-rdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrates invenio-cern-sync and jobs
- closes CERNDocumentServer#196
- Loading branch information
Showing
16 changed files
with
90 additions
and
1,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2023 CERN. | ||
# | ||
# Invenio is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""Jobs.""" | ||
|
||
from invenio_jobs.jobs import JobType | ||
|
||
from .tasks import sync_groups, sync_users | ||
|
||
sync_cern_users = JobType.create( | ||
arguments_schema=None, | ||
job_cls_name="SyncCERNUsersJob", | ||
id_="sync_cern_users", | ||
task=sync_users, | ||
description="Sync CERN users with the AuthZ service", | ||
title="Sync CERN users", | ||
) | ||
|
||
sync_cern_groups = JobType.create( | ||
arguments_schema=None, | ||
job_cls_name="SyncCERNGroupsJob", | ||
id_="sync_cern_groups", | ||
task=sync_groups, | ||
description="Sync CERN groups with the AuthZ service", | ||
title="Sync CERN groups", | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.