{"action":"opened","issue":{"url":"https://api.github.com/repos/BoPeng/SOS/issues/199","repository_url":"https://api.github.com/repos/BoPeng/SOS","labels_url":"https://api.github.com/repos/BoPeng/SOS/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/BoPeng/SOS/issues/199/comments","events_url":"https://api.github.com/repos/BoPeng/SOS/issues/199/events","html_url":"https://github.com/BoPeng/SOS/issues/199","id":173821078,"number":199,"title":"Celery as task executor","user":{"login":"BoPeng","id":9889312,"avatar_url":"https://avatars.githubusercontent.com/u/9889312?v=3","gravatar_id":"","url":"https://api.github.com/users/BoPeng","html_url":"https://github.com/BoPeng","followers_url":"https://api.github.com/users/BoPeng/followers","following_url":"https://api.github.com/users/BoPeng/following{/other_user}","gists_url":"https://api.github.com/users/BoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/BoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoPeng/subscriptions","organizations_url":"https://api.github.com/users/BoPeng/orgs","repos_url":"https://api.github.com/users/BoPeng/repos","events_url":"https://api.github.com/users/BoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/BoPeng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BoPeng/SOS/labels/discussion","name":"discussion","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-29T16:59:12Z","updated_at":"2016-08-29T16:59:12Z","closed_at":null,"body":"On the celery branch. \r\n\r\nstep 1: start redis server\r\n```\r\n% redis-server\r\n```\r\n\r\nstep 2: start celery worker\r\n```\r\n% celery -A pysos.sos_step worker\r\n```\r\n\r\nstep 3: start flower monitor\r\n```\r\n% flower --port=5555 --broker=redis://localhost\r\n```\r\nand point browser to `http://localhost:5555`\r\n\r\nstep 3: execute script\r\n```\r\n% cd test/script\r\n% sos run test_rq.sos\r\n```\r\n\r\nThe flower task monitor seems to be better-looking than rq-dashboard. It appears that the celery worker creates 10 threads (tasks) so the tasks are executed in parallel, which is different from rq worker, which seems to execute tasks sequentially. \r\n\r\nAgain, this is very preliminary, just to show how celery can be invoked to execute tasks. Although Celery is more complex than rq, it seems to be more powerful than rq and should perhaps be our choice."}}
{"actor":{"display_login":"BoPeng"}}