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

scheduled trigger behavior is not intuitive #16

Open
craigbookwalter opened this issue Apr 3, 2017 · 3 comments
Open

scheduled trigger behavior is not intuitive #16

craigbookwalter opened this issue Apr 3, 2017 · 3 comments
Labels

Comments

@craigbookwalter
Copy link

craigbookwalter commented Apr 3, 2017

Hi,
Given a resource:

    name: timer
    type: time
    source:
      days:
      - Monday
      start: 7:00 AM
      stop: 7:30 AM

If a resource like this has already triggered today, it will not trigger again, even if the interval itself is modified in the pipeline definition. If I modify the interval of the resource it should reset and prepare to run again in the new interval.

@concourse-bot
Copy link
Collaborator

Hi there!

We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

The current status is as follows:

  • #142984551 scheduled trigger behavior is not intuitive

This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

@jtarchie
Copy link
Contributor

@craigbookwalter, can you clarify with examples what the change interval you are referring to.

@craigbookwalter
Copy link
Author

I'm speaking primarily about when developing a new pipeline. When iterating on a pipeline, I am often re-setting the time resource for intervals a few minutes into the future, for quick iterations. But for a time resource named "X", it will only trigger once. Changes to X's interval do not seem to matter if X has already triggered once. So in order to iterate on a new pipeline and change the interval as I develop, I need to rename X throughout my whole pipeline to set a new interval.

I think that changing the interval of this resource should nix any previous triggers and render the resource ready to trigger again.

example: it's monday morning, 10:10 AM EST, and I have a new pipeline that triggers on a set time that I want to test. I set the timer resource for 10:15AM like so:

    name: timer
    type: time
    source:
      days:
      - Monday
      start: 10:15 AM
      stop: 10:20 AM

It triggers, my pipeline runs. I see something I need to fix, so I check in a fix and now I want to do another run triggered by the timer. It's now 10:30, so I change the interval to trigger soon:

    name: timer
    type: time
    source:
      days:
      - Monday
      start: 10:30 AM
      stop: 10:35 AM

But my pipeline never triggers, because the timer resource has already triggered, and my interval change was not sufficient to clear the resource's memory of having triggered earlier. Instead I have to do a global search/replace to rename the resource.

@vito vito removed the enhancement label Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants