{"action":"closed","issue":{"url":"https://api.github.com/repos/golemfactory/concent/issues/220","repository_url":"https://api.github.com/repos/golemfactory/concent","labels_url":"https://api.github.com/repos/golemfactory/concent/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/golemfactory/concent/issues/220/comments","events_url":"https://api.github.com/repos/golemfactory/concent/issues/220/events","html_url":"https://github.com/golemfactory/concent/issues/220","id":308932485,"number":220,"title":"Verifier: receiving a task and sending a response","user":{"login":"cameel","id":137030,"avatar_url":"https://avatars3.githubusercontent.com/u/137030?v=4","gravatar_id":"","url":"https://api.github.com/users/cameel","html_url":"https://github.com/cameel","followers_url":"https://api.github.com/users/cameel/followers","following_url":"https://api.github.com/users/cameel/following{/other_user}","gists_url":"https://api.github.com/users/cameel/gists{/gist_id}","starred_url":"https://api.github.com/users/cameel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameel/subscriptions","organizations_url":"https://api.github.com/users/cameel/orgs","repos_url":"https://api.github.com/users/cameel/repos","events_url":"https://api.github.com/users/cameel/events{/privacy}","received_events_url":"https://api.github.com/users/cameel/received_events","type":"User","site_admin":false},"labels":[{"id":822556027,"url":"https://api.github.com/repos/golemfactory/concent/labels/feature","name":"feature","color":"f2dc15","default":false},{"id":879727795,"url":"https://api.github.com/repos/golemfactory/concent/labels/verification%20use%20case","name":"verification use case","color":"f2f296","default":false}],"state":"closed","locked":false,"assignee":{"login":"rwrzesien","id":10088909,"avatar_url":"https://avatars0.githubusercontent.com/u/10088909?v=4","gravatar_id":"","url":"https://api.github.com/users/rwrzesien","html_url":"https://github.com/rwrzesien","followers_url":"https://api.github.com/users/rwrzesien/followers","following_url":"https://api.github.com/users/rwrzesien/following{/other_user}","gists_url":"https://api.github.com/users/rwrzesien/gists{/gist_id}","starred_url":"https://api.github.com/users/rwrzesien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwrzesien/subscriptions","organizations_url":"https://api.github.com/users/rwrzesien/orgs","repos_url":"https://api.github.com/users/rwrzesien/repos","events_url":"https://api.github.com/users/rwrzesien/events{/privacy}","received_events_url":"https://api.github.com/users/rwrzesien/received_events","type":"User","site_admin":false},"assignees":[{"login":"rwrzesien","id":10088909,"avatar_url":"https://avatars0.githubusercontent.com/u/10088909?v=4","gravatar_id":"","url":"https://api.github.com/users/rwrzesien","html_url":"https://github.com/rwrzesien","followers_url":"https://api.github.com/users/rwrzesien/followers","following_url":"https://api.github.com/users/rwrzesien/following{/other_user}","gists_url":"https://api.github.com/users/rwrzesien/gists{/gist_id}","starred_url":"https://api.github.com/users/rwrzesien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwrzesien/subscriptions","organizations_url":"https://api.github.com/users/rwrzesien/orgs","repos_url":"https://api.github.com/users/rwrzesien/repos","events_url":"https://api.github.com/users/rwrzesien/events{/privacy}","received_events_url":"https://api.github.com/users/rwrzesien/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-03-27T11:40:03Z","updated_at":"2018-05-09T00:07:38Z","closed_at":"2018-05-09T00:07:38Z","author_association":"CONTRIBUTOR","body":"This is a part of the implementation of the #193 blueprint.\r\n\r\n- Create an app called `verifier` inside the `concent_api` Django project.\r\n- Create a Celery handler for the `blender_verification_order` message (see #193).\r\n- When you receive the task, respond with `verification_result` message.\r\n    - For now just return a random or hard-coded result. This will be changed in subsequent implementation tasks.\r\n- Log beginning and finishing a task and any information needed to identify it in logs.\r\n\r\n### Task separation\r\nWe want to be able to connect three separate workers types to the queue: Concent, Conductor and Verifier. Each of them should have its own task handlers. When you start one of them with `celery worker` command it must not start processing tasks that belong to other worker types.\r\n\r\nWe'll achieve this by adding a new value to `settings.CONCENT_FEATURES`. Worker's tasks handlers should be registered only if that setting contains `'verifier'` string.\r\n\r\n### Setup for local development\r\nFor local development you'll need to run a RabbitMQ server and a single Celery worker. You can run RabbitMQ in a docker container in one terminal and start the worker in the other. See https://github.com/golemfactory/concent/issues/197#issuecomment-375620295. It should work out of the box because `settings/development.py` is configured to connect to a RabbitMQ server on default port running on localhost."}}
{"actor":{"display_login":"rwrzesien"}}