Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task pause schedule (CE part) #20476

Closed
wants to merge 2 commits into from
Closed

Task pause schedule (CE part) #20476

wants to merge 2 commits into from

Conversation

schmichael
Copy link
Member

CE portion of the enterprise Task Pause Schedules feature. WIP.

Sample jobspec:

job "example" {
  group "haha" {
    task "business" {
      schedule {
        cron {
          # Start 9:30am EST Weekdays
          start = "0 30 9 * * MON-FRI *"

          # Stop 4pm EST Weekdays
          stop = "0 0 16 * * MON-FRI *"

          # Start and Stop are EST timezone
          timezone = "EST"
        }
      }

      driver = "raw_exec"

      config {
        command = "/bin/bash"
        args    = ["-c", "echo running; date; sleep 90000"]
      }
    }
  }
}

@schmichael schmichael requested a review from shoenig April 22, 2024 19:19
@tgross tgross added the stage/needs-rebase This PR needs to be rebased on main before it can be backported to pick up new BPA workflows label May 17, 2024
@gulducat
Copy link
Member

closing in favor of #22201

@gulducat gulducat closed this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-rebase This PR needs to be rebased on main before it can be backported to pick up new BPA workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants