{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/144","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/144/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/144/events","html_url":"https://github.com/hashicorp/nomad/issues/144","id":108801581,"number":144,"title":"Add cron type to job description","user":{"login":"robzienert","id":108741,"avatar_url":"https://avatars.githubusercontent.com/u/108741?v=3","gravatar_id":"","url":"https://api.github.com/users/robzienert","html_url":"https://github.com/robzienert","followers_url":"https://api.github.com/users/robzienert/followers","following_url":"https://api.github.com/users/robzienert/following{/other_user}","gists_url":"https://api.github.com/users/robzienert/gists{/gist_id}","starred_url":"https://api.github.com/users/robzienert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robzienert/subscriptions","organizations_url":"https://api.github.com/users/robzienert/orgs","repos_url":"https://api.github.com/users/robzienert/repos","events_url":"https://api.github.com/users/robzienert/events{/privacy}","received_events_url":"https://api.github.com/users/robzienert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/nomad/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/hashicorp/nomad/labels/scheduling","name":"scheduling","color":"B722E4"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T06:14:24Z","updated_at":"2015-10-15T01:26:47Z","closed_at":null,"body":"We have the ability to create \"service\" and \"batch\" jobs, but it'd be really nice to have an additional \"cron\" type. In this type, a task would be created whenever the cron triggers and once the task is complete (be it the process exits gracefully or not), the task is not recreated until the next cron trigger.\r\n\r\nThe type would not allocate a new task if the number of tasks are already at the maximum count for the group. This might be a nice configuration item to control how this works; performing a no-op, replacement or forced addition.\r\n\r\nAssuming we think this a good idea, I'd be happy to jump into it."},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/148249659","html_url":"https://github.com/hashicorp/nomad/issues/144#issuecomment-148249659","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/144","id":148249659,"user":{"login":"cbednarski","id":649798,"avatar_url":"https://avatars.githubusercontent.com/u/649798?v=3","gravatar_id":"","url":"https://api.github.com/users/cbednarski","html_url":"https://github.com/cbednarski","followers_url":"https://api.github.com/users/cbednarski/followers","following_url":"https://api.github.com/users/cbednarski/following{/other_user}","gists_url":"https://api.github.com/users/cbednarski/gists{/gist_id}","starred_url":"https://api.github.com/users/cbednarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbednarski/subscriptions","organizations_url":"https://api.github.com/users/cbednarski/orgs","repos_url":"https://api.github.com/users/cbednarski/repos","events_url":"https://api.github.com/users/cbednarski/events{/privacy}","received_events_url":"https://api.github.com/users/cbednarski/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T01:26:47Z","updated_at":"2015-10-15T01:26:47Z","body":"Thanks for the suggestion! I think we will need to start with a design doc to iron out some of the expected behavior / use cases.\r\n\r\nFor example, \"run this on every machine on my cluster once a day\" or \"run this every 5 minutes (I don't care which machine it runs on).\" or \"don't overlap if a job is already running\"."}}