{"action":"created","issue":{"url":"https://api.github.com/repos/reinout/z3c.recipe.usercrontab/issues/1","labels_url":"https://api.github.com/repos/reinout/z3c.recipe.usercrontab/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/reinout/z3c.recipe.usercrontab/issues/1/comments","events_url":"https://api.github.com/repos/reinout/z3c.recipe.usercrontab/issues/1/events","html_url":"https://github.com/reinout/z3c.recipe.usercrontab/issues/1","id":108675938,"number":1,"title":" allow to disable a cron-entry","user":{"login":"WouterVH","id":469509,"avatar_url":"https://avatars.githubusercontent.com/u/469509?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterVH","html_url":"https://github.com/WouterVH","followers_url":"https://api.github.com/users/WouterVH/followers","following_url":"https://api.github.com/users/WouterVH/following{/other_user}","gists_url":"https://api.github.com/users/WouterVH/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterVH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterVH/subscriptions","organizations_url":"https://api.github.com/users/WouterVH/orgs","repos_url":"https://api.github.com/users/WouterVH/repos","events_url":"https://api.github.com/users/WouterVH/events{/privacy}","received_events_url":"https://api.github.com/users/WouterVH/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-28T15:00:28Z","updated_at":"2015-10-01T10:42:29Z","closed_at":"2015-09-30T14:07:02Z","body":"new feature-request:\r\n\r\nit should be possible to add a cron-entry that is commented out, or to disabled an active cront-entry from a different builsdout-profile.\r\n\r\n```\r\n[mycronjob]\r\nrecipe = z3c.recipe.usercrontab\r\ntimes = 0 12 * * *\r\ncommand = echo hello\r\ndisabled = True     # default to False for backwards compat.\r\n```\r\n\r\nwould generate:\r\n```\r\n# Generated by /opt/buildouts/... [mycronjob]\r\n# 0 * * * *       echo hello\r\n# END /opt/buildouts/... [mycronjob]\r\n```"},"comment":{"url":"https://api.github.com/repos/reinout/z3c.recipe.usercrontab/issues/comments/144691027","html_url":"https://github.com/reinout/z3c.recipe.usercrontab/issues/1#issuecomment-144691027","issue_url":"https://api.github.com/repos/reinout/z3c.recipe.usercrontab/issues/1","id":144691027,"user":{"login":"WouterVH","id":469509,"avatar_url":"https://avatars.githubusercontent.com/u/469509?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterVH","html_url":"https://github.com/WouterVH","followers_url":"https://api.github.com/users/WouterVH/followers","following_url":"https://api.github.com/users/WouterVH/following{/other_user}","gists_url":"https://api.github.com/users/WouterVH/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterVH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterVH/subscriptions","organizations_url":"https://api.github.com/users/WouterVH/orgs","repos_url":"https://api.github.com/users/WouterVH/repos","events_url":"https://api.github.com/users/WouterVH/events{/privacy}","received_events_url":"https://api.github.com/users/WouterVH/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T10:42:29Z","updated_at":"2015-10-01T10:42:29Z","body":"1)  commenting out the command  -> still an active cronjob\r\n```\r\n[mycronjob]\r\nrecipe = z3c.recipe.usercrontab\r\ntimes = 0 12 * * *\r\ncommand = # echo hello\r\n```\r\nthis will generate\r\n```\r\n 0 12 * * * # echo hello\r\n```\r\n\r\n2)  commenting out the times-option -> still an active cronjob\r\n\r\n```\r\n[mycronjob]\r\nrecipe = z3c.recipe.usercrontab\r\ntimes = #0 12 * * *\r\ncommand =  echo hello\r\n```\r\nthis will generate\r\n```\r\n # 0 12 * * * echo hello\r\n```\r\nwhat don't like about this, is that you need to duplicate the time-option to deactivate it. Different buildout-profiles extending from each other can get out of sync.\r\n( Imagine managing a whole series of cronjobs for 10 different 10 machines)\r\n\r\n"}}