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

schedule job didn't auto-trigger if it has been triggered by manual before startTimestamp #4886

Open
cherrycl opened this issue Sep 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cherrycl
Copy link
Contributor

cherrycl commented Sep 5, 2024

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: support-cron-scheduler

Is this a regression?

No

Description and Minimal Reproduction [REQUIRED]

  1. Create a schedule job
[
  {
    "apiVersion": "v3",
    "scheduleJob": {
      "name": "test_job_1",
      "definition": {
        "type": "INTERVAL",
        "startTimestamp": 1725522240000,
        "endTimestamp": 1725522300000,
        "interval": "20s"
      },
      "actions": [
        {
          "type": "REST",
          "contentType": "application/json",
          "address": "http://172.17.0.1:59880/api/v3/ping",
          "method": "GET"
        }
      ],
      "labels": ["core-data"]
    }
  }
]
  1. Trigger it manual by API job/trigger/name/${name} before the startTimestamp, got return status code 500 with error message failed to trigger scheduler action for job: test_job_1
  2. Wait until startTimestamp

🔥 Exception or Error

The job wasn't auto-trigger.

🌍 Your Environment

Deployment Environment: Ubuntu2204/arm64

EdgeX Version [REQUIRED]: Main

Anything else relevant?
Re-trigger the job by API job/trigger/name/${name} will return 503 Service Unavailable

@cherrycl cherrycl added the bug Something isn't working label Sep 5, 2024
@jackchenjc
Copy link
Contributor

Plan to replace the current implementation with WithStartAt and WithStopAt.

Pending and waiting for #4884 to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Release Backlog
Development

No branches or pull requests

2 participants