concourse / time-resource

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

interval does not trigger #28

Closed razvan-moj-zz closed 6 years ago

razvan-moj-zz commented 6 years ago

The pipeline below runs only once, while I'd expect it to execute every 5 mins:

resources:
- name: 5m
  type: time
  source:
    interval: 5m
- name: app-source
  type: git
  source:
    uri: https://github.com/test-repo
    branch: test-branch
    git_crypt_key: ((ref-secret.ref-key))
jobs:
- name: check-secrets-every-5m
  plan:
  - get: app-source
  - get: 5m
    trigger: true
  - task: check-stuff
    config:
      platform: linux
      inputs:
        - name: app-source
      image_resource:
        type: docker-image
        source:
          repository: repo/concourse-workers
          tag: worker-demo
      run:
        path: /bin/bash
        args:
          - -exc
          - |
            echo "hello world"

The pipeline is definitely not paused, and the task always succeeds when triggered manually, just not every 5 mins

razvan-moj-zz commented 6 years ago

Concourse was 3.11, upgraded to 3.13 just to test, same. The check resource is clearly not being checked: screen shot 2018-05-09 at 14 31 32

razvan-moj-zz commented 6 years ago

Figured it out: one parameter (missing in Readme) is also needed: check_interval Also, similar to #19 , to fix the pipeline it must be destroyed and recreated (no hint from web or fly about this). Once fixed though, a change in schedule is applied normally via diff