Skip to content

[Schedule Type] daily

Olivier Clavel edited this page Nov 25, 2019 · 1 revision

Description

Schedule a task to be run every day starting at a specified date (defaults to now)

Related settings description

schedule_type: daily
start_date_time:
  type: date
  format: "yyyy-MM-dd'T'HH:mm:ss"

Important note: Date must be enclosed in quotes in the configuration file

Example usage (for a simple script task type)

nexus_scheduled_tasks:
  - name: Execute custom script every day from now
    typeId: script
    taskProperties:
      language: groovy
      source: "# Groovy script content"
    task_alert_email: [email protected]
    schedule_type: daily

  - name: Execute custom script every day starting at later date
    typeId: script
    taskProperties:
      language: groovy
      source: "# Groovy script content"
    task_alert_email: [email protected]
    schedule_type: daily
    start_date_time: "2050-12-31T00:00:00"
Clone this wiki locally