{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/stagecraft/issues/406","labels_url":"https://api.github.com/repos/alphagov/stagecraft/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/stagecraft/issues/406/comments","events_url":"https://api.github.com/repos/alphagov/stagecraft/issues/406/events","html_url":"https://github.com/alphagov/stagecraft/pull/406","id":100551409,"number":406,"title":"Add celery job queue to Stagecraft","user":{"login":"tombooth","id":108382,"avatar_url":"https://avatars.githubusercontent.com/u/108382?v=3","gravatar_id":"","url":"https://api.github.com/users/tombooth","html_url":"https://github.com/tombooth","followers_url":"https://api.github.com/users/tombooth/followers","following_url":"https://api.github.com/users/tombooth/following{/other_user}","gists_url":"https://api.github.com/users/tombooth/gists{/gist_id}","starred_url":"https://api.github.com/users/tombooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombooth/subscriptions","organizations_url":"https://api.github.com/users/tombooth/orgs","repos_url":"https://api.github.com/users/tombooth/repos","events_url":"https://api.github.com/users/tombooth/events{/privacy}","received_events_url":"https://api.github.com/users/tombooth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-12T14:03:19Z","updated_at":"2015-08-21T11:57:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/stagecraft/pulls/406","html_url":"https://github.com/alphagov/stagecraft/pull/406","diff_url":"https://github.com/alphagov/stagecraft/pull/406.diff","patch_url":"https://github.com/alphagov/stagecraft/pull/406.patch"},"body":"We use django-celery because it provides us with a set of models for\r\ncontrolling periodic jobs and the scheduler for celerybeat to execute\r\nthem.\r\n\r\nThis adds 3 new process types to the Procfile:\r\n   - `worker` the process that will consume the jobs to be executed and\r\n     run them. The `-E` tells the process to emit events that will be\r\n     consumed by the celerycam process to store state of jobs\r\n   - `beat` reads from the database and triggers scheduled periodic jobs\r\n   - `celerycam` reads the state of running jobs periodically and stores\r\n     this information in the database"},"comment":{"url":"https://api.github.com/repos/alphagov/stagecraft/issues/comments/133389057","html_url":"https://github.com/alphagov/stagecraft/pull/406#issuecomment-133389057","issue_url":"https://api.github.com/repos/alphagov/stagecraft/issues/406","id":133389057,"user":{"login":"tombooth","id":108382,"avatar_url":"https://avatars.githubusercontent.com/u/108382?v=3","gravatar_id":"","url":"https://api.github.com/users/tombooth","html_url":"https://github.com/tombooth","followers_url":"https://api.github.com/users/tombooth/followers","following_url":"https://api.github.com/users/tombooth/following{/other_user}","gists_url":"https://api.github.com/users/tombooth/gists{/gist_id}","starred_url":"https://api.github.com/users/tombooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombooth/subscriptions","organizations_url":"https://api.github.com/users/tombooth/orgs","repos_url":"https://api.github.com/users/tombooth/repos","events_url":"https://api.github.com/users/tombooth/events{/privacy}","received_events_url":"https://api.github.com/users/tombooth/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T11:57:39Z","updated_at":"2015-08-21T11:57:39Z","body":"I had some tasks running locally on the GOV.UK dev vm, but I didn't want to commit a bunch of dummy tasks. I can add something if you want so we can create a periodic job in preview."}}