{"id":19485733,"url":"https://github.com/devforth/django-runapscheduler","last_synced_at":"2025-10-13T04:33:35.867Z","repository":{"id":99006463,"uuid":"344484767","full_name":"devforth/django-runapscheduler","owner":"devforth","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T15:48:11.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-25T18:42:02.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devforth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-03-04T13:31:36.000Z","updated_at":"2023-01-21T12:50:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a723996-3581-4c1f-a4ba-7022cc4b401e","html_url":"https://github.com/devforth/django-runapscheduler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devforth/django-runapscheduler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforth%2Fdjango-runapscheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforth%2Fdjango-runapscheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforth%2Fdjango-runapscheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforth%2Fdjango-runapscheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devforth","download_url":"https://codeload.github.com/devforth/django-runapscheduler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforth%2Fdjango-runapscheduler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013684,"owners_count":26085390,"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-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-11-10T20:29:53.709Z","updated_at":"2025-10-13T04:33:35.853Z","avatar_url":"https://github.com/devforth.png","language":"Python","readme":"# Django Run APScheduler Command\nDjango Run APScheduler Command is a command that simplifies management of scheduler for django apps and moves those tasks to a separate django process, so you can run heavy tas without worrying of django app stalling.\n\nTo use the command firstly you need to create scheduler.py file inside your app and attach `runapscheduler.scheduled_job` decorator to any function.\n\n`runapscheduler.scheduled_job` decorator accepts the same parameters as `APSceduler`'s [scheduled_job](https://apscheduler.readthedocs.io/en/stable/modules/schedulers/base.html#apscheduler.schedulers.base.BaseScheduler.scheduled_job) decorator.\n\n\nAlso it's possible to pass some options to schedulers. To do add `RUNAPSCHEDULER_OPTIONS` dictionary to `setting.py`.\nFirst key must be a name of scheduler and the value of that key must be a dict filled as in [Method 2](https://apscheduler.readthedocs.io/en/stable/userguide.html#configuring-the-scheduler) in APScheduler documentation.\nExample:\n```\nRUNAPSCHEDULER_OPTIONS = {\n    'BackgroundScheduler': {\n        'apscheduler.jobstores.default': {\n            'type': 'sqlalchemy',\n            'url': 'sqlite:///jobs.sqlite'\n        },\n        'apscheduler.executors.default': {\n            'class': 'apscheduler.executors.pool:ThreadPoolExecutor',\n            'max_workers': '20'\n        },\n        'apscheduler.job_defaults.coalesce': 'false',\n        'apscheduler.job_defaults.max_instances': '3',\n        'apscheduler.timezone': 'UTC',\n    }\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforth%2Fdjango-runapscheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevforth%2Fdjango-runapscheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforth%2Fdjango-runapscheduler/lists"}