{"id":48615336,"url":"https://github.com/maxcharm093/simple-tasks","last_synced_at":"2026-04-09T01:33:53.744Z","repository":{"id":311487737,"uuid":"1043843466","full_name":"maxcharm093/simple-tasks","owner":"maxcharm093","description":"Simple tasks real-time updates with django channels, DRF, celery","archived":false,"fork":false,"pushed_at":"2025-08-24T18:43:11.000Z","size":403,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"auth","last_synced_at":"2025-08-24T22:51:39.031Z","etag":null,"topics":["celery","django","django-channels","drf","rabbitmq","react-redux","redis","websocket"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxcharm093.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-24T18:26:02.000Z","updated_at":"2025-08-24T18:53:30.000Z","dependencies_parsed_at":"2025-08-24T22:51:48.571Z","dependency_job_id":"e5f29d01-7454-424b-8e0f-c80c1c5a2158","html_url":"https://github.com/maxcharm093/simple-tasks","commit_stats":null,"previous_names":["maxcharm093/simple-tasks"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maxcharm093/simple-tasks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fsimple-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fsimple-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fsimple-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fsimple-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxcharm093","download_url":"https://codeload.github.com/maxcharm093/simple-tasks/tar.gz/refs/heads/auth","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fsimple-tasks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","django","django-channels","drf","rabbitmq","react-redux","redis","websocket"],"created_at":"2026-04-09T01:33:53.373Z","updated_at":"2026-04-09T01:33:53.720Z","avatar_url":"https://github.com/maxcharm093.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/pplonski/simple-tasks.svg?branch=master)](https://travis-ci.org/pplonski/simple-tasks)\n\n# Simple-tasks\n\n![Example](example.gif)\n\nSimple tasks real-time updates with django channels, DRF, celery\n\nThis repo is showing example how you can use celery tasks and django channels to send tasks progress over the websockets. The client side is written in react and redux.\n\nThe task that is executed in celery it is simple add. It accepts two arguments in JSON format, example `{\"arg1\": 2, \"arg2\": 2}`. It will execute as long as the value of the `arg1`. If the value of `arg1` is negative the worker crash will be simulated in the code (crash with segfault). If the value of `arg2` is negative then the worker will crash during importing fake package. (Both crash simulations were used to show how we can set FAILURE state even if worker crashed).\n\nIn this example the task can be in following states: CREATED, PROGRESS, SUCCESS, FAILURE. The progress value is not stored in database, it is only broadcasted by websockets during task exceution.\n\nThe task states and progress are set by:\n - `backend/worker/redis_listener.py` which is pubsub on redis. It is updating the progress value.\n - `backend/worker/worker_listener.py` which is monitoring celery events. It is setting state values, for example in case of task failure.\n\n#### Nginx configuration\n\nIn this example we are running `gunicorn` and `daphne` servers and redirecting requests in nginx:\n - HTTP is going to `gunicorn`\n - websocket is going to `daphne`\n\nThis can be changed, and both HTTP and websocket connectionscan be handled by `daphne` server.\n\n#### Running\n\nTo run the app you can use docker-compose:\n\n```\ndocker-compose up --build -d\n```\n\nTo stop the app:\n\n```\ndocker-compose down\n```\n\nThe app will be accessed at `0.0.0.0:8000`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxcharm093%2Fsimple-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxcharm093%2Fsimple-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxcharm093%2Fsimple-tasks/lists"}