Changeset View
Changeset View
Standalone View
Standalone View
docs/save_forge.rst
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | Task 1240540 | ||||||||||||
Next run: just now (2020-09-11 14:25:45+00:00) | Next run: just now (2020-09-11 14:25:45+00:00) | ||||||||||||
Interval: 90 days, 0:00:00 | Interval: 90 days, 0:00:00 | ||||||||||||
Type: list-gitea-full | Type: list-gitea-full | ||||||||||||
Policy: oneshot | Policy: oneshot | ||||||||||||
Args: | Args: | ||||||||||||
Keyword args: | Keyword args: | ||||||||||||
limit: 100 | limit: 100 | ||||||||||||
url: 'https://codeberg.org/api/v1/' | url: 'https://codeberg.org/api/v1/' | ||||||||||||
.. _register-task-type: | |||||||||||||
Register task types to the scheduler | |||||||||||||
------------------------------------ | |||||||||||||
- To register new task types, ensure you have the code at the required version: | |||||||||||||
vlorentzUnsubmitted Not Done Inline Actions
vlorentz: | |||||||||||||
- docker environment: use :file:`docker-compose.override.yml` with the desired | |||||||||||||
:ref:`volume for both lister and scheduler* containers<run-lister-tutorial>` | |||||||||||||
- for production/staging, upgrade the swh package first then trigger the cli. | |||||||||||||
- Use the ``swh scheduler task-type register`` command: | |||||||||||||
Not Done Inline Actions
vlorentz: | |||||||||||||
:: | |||||||||||||
$ swh scheduler --config-file /etc/softwareheritage/scheduler.yml task-type register | |||||||||||||
INFO:swh.core.config:Loading config file /etc/softwareheritage/scheduler.yml | |||||||||||||
INFO:swh.scheduler.cli.task_type:Loading entrypoint for plugin lister.launchpad | |||||||||||||
INFO:swh.scheduler.cli.task_type:Create task type list-launchpad-incremental in scheduler | |||||||||||||
INFO:swh.scheduler.cli.task_type:Create task type list-launchpad-full in scheduler | |||||||||||||
INFO:swh.scheduler.cli.task_type:Create task type list-launchpad-new in scheduler | |||||||||||||
... | |||||||||||||
Note: The command is idempotent so it can be executed multiple times. |