Skip to content

[Schedule Type] hourly

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

Description

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

Related settings description

schedule_type: hourly
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 hour from now
    typeId: script
    taskProperties:
      language: groovy
      source: "# Groovy script content"
    task_alert_email: alert@somewhere.info
    schedule_type: hourly

  - name: Execute custom script every hour starting at later date
    typeId: script
    taskProperties:
      language: groovy
      source: "# Groovy script content"
    task_alert_email: alert@somewhere.info
    schedule_type: hourly
    start_date_time: "2050-12-31T00:00:00"