concourse / time-resource

a resource for triggering on an interval
Apache License 2.0
44 stars 32 forks source link

The resource checks are not checking #47

Closed skreddy6673 closed 4 years ago

skreddy6673 commented 4 years ago

My Resource checks use to perform on Monday to Friday morning at a certain time and suddenly it stopped checking. For some reason, the resource check didn't perform on the time it should be and i cannot even manually check the resource outside the time range. Even the second day it didn't check the resource. I did tried to force check using the fly check-resource which returned 500 error message.

I even tried changing the time and interval but no luck.

The time interval check you will see on the pipeline page seems to be not performing. I've set my interval to every one minute, which means the time shown on the resource page should not exceed 1 minute, but my resource check keeps on increasing the value. image This is what i'm referring to.

Somehow deleting the resource type and adding it back after some time seems to be working for now.

owenfarrell commented 4 years ago

@skreddy6673 - Could you share the time resource configuration from your pipeline?

skreddy6673 commented 4 years ago

Adding the check_every step solved the issue.

resources:
- name: morning
  type: time
  source:
    interval: 1m
    start: 11:00 AM
    stop: 1:00 PM
    location: America/New_York
  check_every: 2m # change this to some interval you want

Here is my resource config that is working good now.