{"id":19119031,"url":"https://github.com/saasitive/dynamically-update-periodic-tasks","last_synced_at":"2025-09-08T12:30:44.408Z","repository":{"id":108991749,"uuid":"552797521","full_name":"saasitive/dynamically-update-periodic-tasks","owner":"saasitive","description":"Dynamically update periodic tasks in Celery","archived":false,"fork":false,"pushed_at":"2022-10-17T12:51:38.000Z","size":72,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T23:01:41.464Z","etag":null,"topics":["celery","celery-tasks","celerybeat","django","django-framework","django-rest-framework","periodic-tasks","python"],"latest_commit_sha":null,"homepage":"https://saasitive.com/tutorial/dynamically-update-periodic-tasks-celery/","language":"Python","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/saasitive.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}},"created_at":"2022-10-17T08:41:28.000Z","updated_at":"2024-12-20T09:22:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"6351d554-0986-40d0-9283-01e183ff435f","html_url":"https://github.com/saasitive/dynamically-update-periodic-tasks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saasitive/dynamically-update-periodic-tasks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saasitive%2Fdynamically-update-periodic-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saasitive%2Fdynamically-update-periodic-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saasitive%2Fdynamically-update-periodic-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saasitive%2Fdynamically-update-periodic-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saasitive","download_url":"https://codeload.github.com/saasitive/dynamically-update-periodic-tasks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saasitive%2Fdynamically-update-periodic-tasks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274185336,"owners_count":25237376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","celery-tasks","celerybeat","django","django-framework","django-rest-framework","periodic-tasks","python"],"created_at":"2024-11-09T05:08:21.029Z","updated_at":"2025-09-08T12:30:44.399Z","avatar_url":"https://github.com/saasitive.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![](https://github.com/saasitive/dynamically-update-periodic-tasks/raw/main/media/banner.jpg)\n\n# Dynamically update periodic tasks in Celery and Django\n\nExample project showing how to dynamically add and remove periodic tasks in Celery and Django. It is using `PeriodicTask` class from [**`django-celery-beat`**](https://github.com/celery/django-celery-beat) package.\n\nThis example repository is very simple demo of [uptime monitoring service](https://monitor-uptime.com). User can add server address and interval at which server uptime status will be checked. Tasks can be dynamically added or removed.\n\nYou can read more about [dynamic periodic tasks in the article](https://saasitive.com/tutorial/dynamically-update-periodic-tasks-celery/).\n\n\n## Sequence diagram of uptime monitoring \n\n```mermaid\nsequenceDiagram\n    actor U as User\n    participant S as Server\n    participant DB as Database\n    participant B as Celery Beat\n    participant W as Celery Worker\n    \n    U-\u003e\u003eS: Create monitor \n    Note right of S: Create objects in DB\n    S-\u003e\u003eDB: Create Monitor object\n    S-\u003e\u003eDB: Create IntervalSchedule object\n    S-\u003e\u003eDB: Create Periodictack object\n    \n    loop every beat period\n        DB-\u003e\u003eB: Get info about periodic tasks\n    end\n    loop Every interval period\n        B-\u003e\u003eW: Create task\n        Note right of W: Execute task\n        W-\u003e\u003eDB: Save task result (request data)\n    end \n    \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaasitive%2Fdynamically-update-periodic-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaasitive%2Fdynamically-update-periodic-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaasitive%2Fdynamically-update-periodic-tasks/lists"}