-
Notifications
You must be signed in to change notification settings - Fork 209
Scheduled tasks configuration
Olivier Clavel edited this page Nov 26, 2019
·
4 revisions
The Nexus scheduled task configuration for the role is declared in the nexus_scheduled_tasks
list variable.
This is what a general task declaration looks like. See below for common parameters desccriptions and example for each task types and schedule types.
nexus_scheduled_tasks:
- name: Mandatory name of the scheduled task
typeId: Mandatory internal nexus identifier for the type of task
enabled: Optionnal task enable flag - defaults to true
task_alert_email: Optional email for task fail alerts - defaults to empty
taskProperties:
# [ Hashmap - See doc by typeId ]
booleanTaskProperties:
# [ Hashmap - See doc by typeId ]
schedule_type: Optionnal schecule type - defaults to cron
# [ schedule specific parameters - See doc by schedule type]
- # [ ... Next task ... ]
The following parameters are common to all tasks
name:
type: string
description: Name of the scheduled task
mandatory: true
typeId:
type: string
description: Identifier of the task type
mandatory: true
enabled:
type: boolean
description: Is the task enabled ?
default: true
mandatory: false
task_alert_email:
type: string
description: Email to send faild task alerts
default: ''
mandatory: false
taskProperties:
type: hashmap
description: Hashmap of specific int/float/string task parameters
default: {}
mandatory: false # Actually depends on the task type
booleanTaskProperties:
type: hashmap
description: Hashmap of specific boolean task parameters
default: {}
mandatory: false # Actually depends on the task type
schedule_type:
type: string
description: Identifier of the schedule type
default: cron
mandatory: false # Need to define a `cron` value if using this default
- Admin - Compact blob store
- Admin - Delete orphaned API keys
- Admin - Execute script
- Admin - Export database for backup
- Docker - Delete incomplete uploads
- Docker - Delete unused manifests and images
- Maven - Delete SNAPSHOT
- Maven - Delete unused SNAPSHOT
- Maven - Publish Maven indexer files
- Maven - Unpublish Maven indexer files
- Repair - Rebuild Maven repository metadata (maven-metadata.xml)
- Repair - Rebuild repository browse
- Repair - Rebuild repository search
- Repair - Rebuild Yum repository metadata (repodata)
- Repair - Reconcile component database from blob store
- Repair - Reconcile date metadata from blob store
- Repair - Reconcile npm /-/v1/search metadata
- Repository - Delete unused components