{"id":21343528,"url":"https://github.com/cloudmercato/django-dbcron","last_synced_at":"2026-05-21T04:04:38.305Z","repository":{"id":57419705,"uuid":"169503891","full_name":"cloudmercato/django-dbcron","owner":"cloudmercato","description":"Manage your crontab directly from DB","archived":false,"fork":false,"pushed_at":"2023-12-25T03:42:22.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T17:12:54.886Z","etag":null,"topics":["cron","crontab","django","scheduler"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudmercato.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-07T01:33:29.000Z","updated_at":"2019-04-09T22:33:10.000Z","dependencies_parsed_at":"2022-09-13T15:32:37.981Z","dependency_job_id":null,"html_url":"https://github.com/cloudmercato/django-dbcron","commit_stats":null,"previous_names":["cloudspectatordevelopment/django-dbcron"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudmercato/django-dbcron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudmercato%2Fdjango-dbcron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudmercato%2Fdjango-dbcron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudmercato%2Fdjango-dbcron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudmercato%2Fdjango-dbcron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudmercato","download_url":"https://codeload.github.com/cloudmercato/django-dbcron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudmercato%2Fdjango-dbcron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33288148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: 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":["cron","crontab","django","scheduler"],"created_at":"2024-11-22T01:13:38.131Z","updated_at":"2026-05-21T04:04:38.273Z","avatar_url":"https://github.com/cloudmercato.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-dbcron\n=============\n\nManage crontab directly from your Django database\n\nWhy\n---\n\nThey are plenty of implementation of crontabs in Python and Django, but our\nissue was their elasticity. Generally a set of classes will allow you to\ncreate a crontab, here in django-dbcron, things are stored in database\ninstead of Python classes.\n\n\nInstallation\n------------\n\nClassic pip install: ::\n\n  pip install django-dbcron\n\n\nAdd it to you ``INSTALLED_APPS``: ::\n\n  INSTALLED_APPS = (\n    ...\n    'dbcron',\n    ...\n  )\n\nLaunch migrations: ::\n\n  ./manage.py migrate dbcron\n\nUsage\n-----\n\nThis app owns its own cron daemon, launch it with: ::\n\n  ./manage.py crond\n\nThe daemon will act as a classic cron and will run each task in a new thread,\nleaving the main one continuing.\n\nFrom admin\n~~~~~~~~~\n\nThe cron table is set in database and the Django admin site is a quick\nsolution to manage you jobs.\n\nFrom Python\n~~~~~~~~~~\n\nJust play with the model: ::\n\n  from dbcron.models import Job\n\n  # Run now() each minute\n  job = Job.object.create(\n      name='My job',\n      func='django.utils.timezone.now',\n      is_active=True,\n      sec=\"0\",\n      min=\"*/1,\n      hou=\"*\",\n      dom=\"*\",\n      mon=\"*\",\n      dow=\"*\",\n      yea=\"*\"\n  )\n\n  # Test it\n  job.run()\n\nWarning\n-------\n\nThe cron daemon launches jobs as they are requested with:\n\n- function's path\n- arguments and keyword arguments\n\nThere's no security about who/when/how, just functions launched abritairly,\nBe careful who can set crontab, and do not hesitate to limit possible values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudmercato%2Fdjango-dbcron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudmercato%2Fdjango-dbcron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudmercato%2Fdjango-dbcron/lists"}