{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments/27614427","id":27614427,"diff_hunk":"@@ -101,6 +100,8 @@ def trigger\n       puppet_trigger['start_date'] = self.class.normalized_date(\"#{trigger['start_year']}-#{trigger['start_month']}-#{trigger['start_day']}\")\n       puppet_trigger['start_time'] = self.class.normalized_time(\"#{trigger['start_hour']}:#{trigger['start_minute']}\")\n       puppet_trigger['enabled']    = trigger['flags'] & Win32::TaskScheduler::TASK_TRIGGER_FLAG_DISABLED == 0\n+      puppet_trigger['minutes_interval'] = trigger['minutes_interval'] ||= 0\n+      puppet_trigger['minutes_duration'] = trigger['minutes_duration'] ||= 0","path":"lib/puppet/provider/scheduled_task/win32_taskscheduler.rb","position":13,"original_position":13,"commit_id":"6a9008c9459c7cc68bbe7d8151dc2c87c5dcf80e","original_commit_id":"6a9008c9459c7cc68bbe7d8151dc2c87c5dcf80e","user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"body":"I also created one explicitly in the GUI:\r\n\r\n```puppet\r\nscheduled_task { 'bob-frommenu':\r\n  ensure  => 'present',\r\n  command => 'c:\\windows\\system32\\cmd.exe',\r\n  enabled => 'true',\r\n  trigger => [{'enabled' => 'true', 'index' => '0', 'minutes_duration' => '0', 'minutes_interval' => '0', 'schedule' => 'once', 'start_date' => '2015-4-1', 'start_time' => '16:35'}],\r\n  user    => 'WIN-QR952GIDHVE\\rob',\r\n}\r\n```","created_at":"2015-04-01T21:36:21Z","updated_at":"2015-04-01T21:36:21Z","html_url":"https://github.com/puppetlabs/puppet/pull/3758#discussion_r27614427","pull_request_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments/27614427"},"html":{"href":"https://github.com/puppetlabs/puppet/pull/3758#discussion_r27614427"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758","id":32040548,"html_url":"https://github.com/puppetlabs/puppet/pull/3758","diff_url":"https://github.com/puppetlabs/puppet/pull/3758.diff","patch_url":"https://github.com/puppetlabs/puppet/pull/3758.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppet/issues/3758","number":3758,"state":"open","locked":false,"title":"(PUP-1291) Scheduled Tasks Support for Repeat Triggers","user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"body":"Previously, the scheduled_task resource did not support repetition for anything\r\nless than 1 day. This is limiting as the cron resource can support repetition\r\nin minutes. Task scheduler on Windows can support repeating tasks every x\r\nnumber of minutes, and the win32-taskscheduler gem also allows this.\r\n\r\nAllow Puppet's scheduled_task resource to support repetition every x number of\r\nminutes. Without this change the schedule resource continues to be more limited\r\nthan on other platforms.\r\n\r\nThis supersedes #3747 - branch retargeted","created_at":"2015-03-26T17:25:12Z","updated_at":"2015-04-01T21:36:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff0176960571f6202175ef0c6291e12e9be12e59","assignee":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppet/issues/3758/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppet/statuses/6a9008c9459c7cc68bbe7d8151dc2c87c5dcf80e","head":{"label":"ferventcoder:fix/master/schedtasks1","ref":"fix/master/schedtasks1","sha":"6a9008c9459c7cc68bbe7d8151dc2c87c5dcf80e","user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"repo":{"id":10981679,"name":"puppet","full_name":"ferventcoder/puppet","owner":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ferventcoder/puppet","description":"Server automation framework and application","fork":true,"url":"https://api.github.com/repos/ferventcoder/puppet","forks_url":"https://api.github.com/repos/ferventcoder/puppet/forks","keys_url":"https://api.github.com/repos/ferventcoder/puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ferventcoder/puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ferventcoder/puppet/teams","hooks_url":"https://api.github.com/repos/ferventcoder/puppet/hooks","issue_events_url":"https://api.github.com/repos/ferventcoder/puppet/issues/events{/number}","events_url":"https://api.github.com/repos/ferventcoder/puppet/events","assignees_url":"https://api.github.com/repos/ferventcoder/puppet/assignees{/user}","branches_url":"https://api.github.com/repos/ferventcoder/puppet/branches{/branch}","tags_url":"https://api.github.com/repos/ferventcoder/puppet/tags","blobs_url":"https://api.github.com/repos/ferventcoder/puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ferventcoder/puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ferventcoder/puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ferventcoder/puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ferventcoder/puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/ferventcoder/puppet/languages","stargazers_url":"https://api.github.com/repos/ferventcoder/puppet/stargazers","contributors_url":"https://api.github.com/repos/ferventcoder/puppet/contributors","subscribers_url":"https://api.github.com/repos/ferventcoder/puppet/subscribers","subscription_url":"https://api.github.com/repos/ferventcoder/puppet/subscription","commits_url":"https://api.github.com/repos/ferventcoder/puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ferventcoder/puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ferventcoder/puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ferventcoder/puppet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ferventcoder/puppet/contents/{+path}","compare_url":"https://api.github.com/repos/ferventcoder/puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ferventcoder/puppet/merges","archive_url":"https://api.github.com/repos/ferventcoder/puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ferventcoder/puppet/downloads","issues_url":"https://api.github.com/repos/ferventcoder/puppet/issues{/number}","pulls_url":"https://api.github.com/repos/ferventcoder/puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/ferventcoder/puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/ferventcoder/puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ferventcoder/puppet/labels{/name}","releases_url":"https://api.github.com/repos/ferventcoder/puppet/releases{/id}","created_at":"2013-06-26T23:11:03Z","updated_at":"2015-03-30T17:11:05Z","pushed_at":"2015-04-01T21:17:32Z","git_url":"git://github.com/ferventcoder/puppet.git","ssh_url":"git@github.com:ferventcoder/puppet.git","clone_url":"https://github.com/ferventcoder/puppet.git","svn_url":"https://github.com/ferventcoder/puppet","homepage":"http://www.puppetlabs.com/puppet/introduction/","size":48399,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:3.x","ref":"3.x","sha":"b03302d561f7b9332587a913ac4c9f1821e280e8","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":910744,"name":"puppet","full_name":"puppetlabs/puppet","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/puppet","description":"Server automation framework and application","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppet","forks_url":"https://api.github.com/repos/puppetlabs/puppet/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppet/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppet/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppet/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppet/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppet/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppet/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppet/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppet/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppet/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppet/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppet/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppet/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppet/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppet/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppet/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppet/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppet/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppet/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppet/releases{/id}","created_at":"2010-09-14T19:26:44Z","updated_at":"2015-04-01T19:55:39Z","pushed_at":"2015-04-01T21:27:37Z","git_url":"git://github.com/puppetlabs/puppet.git","ssh_url":"git@github.com:puppetlabs/puppet.git","clone_url":"https://github.com/puppetlabs/puppet.git","svn_url":"https://github.com/puppetlabs/puppet","homepage":"http://www.puppetlabs.com/puppet/introduction/","size":111584,"stargazers_count":3112,"watchers_count":3112,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1316,"mirror_url":null,"open_issues_count":31,"forks":1316,"open_issues":31,"watchers":3112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758"},"html":{"href":"https://github.com/puppetlabs/puppet/pull/3758"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppet/issues/3758"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppet/issues/3758/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/3758/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppet/statuses/6a9008c9459c7cc68bbe7d8151dc2c87c5dcf80e"}}}}