{"action":"created","issue":{"url":"https://api.github.com/repos/concourse/time-resource/issues/16","repository_url":"https://api.github.com/repos/concourse/time-resource","labels_url":"https://api.github.com/repos/concourse/time-resource/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/concourse/time-resource/issues/16/comments","events_url":"https://api.github.com/repos/concourse/time-resource/issues/16/events","html_url":"https://github.com/concourse/time-resource/issues/16","id":219038789,"number":16,"title":"scheduled trigger behavior is not intuitive","user":{"login":"craigbookwalter","id":8204832,"avatar_url":"https://avatars0.githubusercontent.com/u/8204832?v=4","gravatar_id":"","url":"https://api.github.com/users/craigbookwalter","html_url":"https://github.com/craigbookwalter","followers_url":"https://api.github.com/users/craigbookwalter/followers","following_url":"https://api.github.com/users/craigbookwalter/following{/other_user}","gists_url":"https://api.github.com/users/craigbookwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/craigbookwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigbookwalter/subscriptions","organizations_url":"https://api.github.com/users/craigbookwalter/orgs","repos_url":"https://api.github.com/users/craigbookwalter/repos","events_url":"https://api.github.com/users/craigbookwalter/events{/privacy}","received_events_url":"https://api.github.com/users/craigbookwalter/received_events","type":"User","site_admin":false},"labels":[{"id":108839190,"url":"https://api.github.com/repos/concourse/time-resource/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb","default":false},{"id":108839193,"url":"https://api.github.com/repos/concourse/time-resource/labels/type:%20question","name":"type: question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-03T19:36:15Z","updated_at":"2017-08-29T17:07:50Z","closed_at":null,"body":"Hi, \r\nGiven a resource:\r\n```\r\n    name: timer\r\n    type: time\r\n    source:\r\n      days:\r\n      - Monday\r\n      start: 7:00 AM\r\n      stop: 7:30 AM\r\n```\r\n\r\nIf 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."},"comment":{"url":"https://api.github.com/repos/concourse/time-resource/issues/comments/325730479","html_url":"https://github.com/concourse/time-resource/issues/16#issuecomment-325730479","issue_url":"https://api.github.com/repos/concourse/time-resource/issues/16","id":325730479,"user":{"login":"craigbookwalter","id":8204832,"avatar_url":"https://avatars0.githubusercontent.com/u/8204832?v=4","gravatar_id":"","url":"https://api.github.com/users/craigbookwalter","html_url":"https://github.com/craigbookwalter","followers_url":"https://api.github.com/users/craigbookwalter/followers","following_url":"https://api.github.com/users/craigbookwalter/following{/other_user}","gists_url":"https://api.github.com/users/craigbookwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/craigbookwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigbookwalter/subscriptions","organizations_url":"https://api.github.com/users/craigbookwalter/orgs","repos_url":"https://api.github.com/users/craigbookwalter/repos","events_url":"https://api.github.com/users/craigbookwalter/events{/privacy}","received_events_url":"https://api.github.com/users/craigbookwalter/received_events","type":"User","site_admin":false},"created_at":"2017-08-29T17:07:50Z","updated_at":"2017-08-29T17:07:50Z","body":"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.\r\n\r\nI think that changing the interval of this resource should nix any previous triggers and render the resource ready to trigger again.\r\n\r\nexample: 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:\r\n\r\n```\r\n    name: timer\r\n    type: time\r\n    source:\r\n      days:\r\n      - Monday\r\n      start: 10:15 AM\r\n      stop: 10:20 AM\r\n```\r\nIt 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:\r\n\r\n```\r\n    name: timer\r\n    type: time\r\n    source:\r\n      days:\r\n      - Monday\r\n      start: 10:30 AM\r\n      stop: 10:35 AM\r\n```\r\nBut 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.\r\n\r\n"}}
{"actor":{"display_login":"craigbookwalter"}}