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

Not working in Concourse 6 #57

Open
pikesley opened this issue Jan 8, 2021 · 3 comments
Open

Not working in Concourse 6 #57

pikesley opened this issue Jan 8, 2021 · 3 comments

Comments

@pikesley
Copy link

pikesley commented Jan 8, 2021

Hi

We've just upgraded to Concourse 6.7 (from 5.8), and time-triggered pipelines that worked fine in 5 are now broken. I have some pipelines that are set to run every 5 minutes that are now launching once an hour.

I've setup a very simple pipeline to demonstrate what I mean:

jobs:
- name: do-something
  plan:
  - get: timed-run
    trigger: true
  - get: ubuntu
  - config:
      platform: linux
      run:
        args:
        - hello world
        path: echo
    image: ubuntu
    task: print-words
resources:
- icon: alarm
  name: timed-run
  source:
    interval: 1m
  type: time
- name: ubuntu
  source:
    repository: ubuntu
  type: docker-image

When I deploy this, the timed-run resource immediately shows checked successfully but does not trigger the job. When I force a check, the job is eventually triggered, but then the resource sits and waits, seemingly forever. It currently says

checked | 8m 24s ago

EDIT: I went to lunch and left it running and it seems to have run after roughly an hour, which I guess is the default?

Am I doing something wrong? Has something changed? Please help, this is breaking quite a few workflows now

Thanks

Sam

@skreddy6673
Copy link

@pikesley Try adding check_every.

@clarafu
Copy link
Contributor

clarafu commented Mar 18, 2022

@pikesley Do you have global-resources enabled? Also, are those resources sharing the same resource configuration as other resources? (for ex, you have a lot of resources in your deployment that point to the same docker registry)

@iomarcovalente
Copy link

@pikesley Try adding check_every.

This is what worked for me. This led me to check what Global Env Var I have set and surely enough I found: CONCOURSE_RESOURCE_CHECKING_INTERVAL=12h

I guess by setting it on the resource it overrides that Default Env Var:

resources:
- name: my-timer
  type: time
  check_every: 1m
  source:
    interval: 120s
    location: Europe/London

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants