Skip to main content

django-crontab-agent

Agent for django-crontab-manager. Installed the agent on the target server. The agent will sync settings from the manager and update the crontab file every minutes.

Note: It is an agent implementation of django-crontab-manager server.

Install

pip install django-crontab-agent

Usage

C:\tmp\django-crontab-agent>python -m django_crontab_agent.cli
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  exec            Execute schedule job.
  install         Setup auto sync cron job.
  reset-cronfile  Re-generate cron file for all schedules.
  sync            Sync agent settings from manager server.
  1. Create an config file. It's a yml format file. See default values below. null valued field is required in custom config file.
    cronfile-for-agent: "/etc/cron.d/django-crontab-agent"
    cronfile-for-schedules: "/etc/cron.d/django-crontab-schedules"
    schedules: "/etc/django-crontab-agent/schedules/"
    django-crontab-agent-command: "django-crontab-agent"
    schedule-exec-command: "{django_crontab_agent_command} exec -c {config} {schedule} >> /dev/null 2>&1"
    cronjob-for-agent: "* * * * * root {django_crontab_agent_command} sync -c {config} >> /dev/null 2>&1"
    logfile: "/var/log/django-crontab-agent.log"
    loglevel: "DEBUG"
    server-codes-file: "/etc/django-crontab-agent/server-code.txt"
    schedule-task-codes-file: "/etc/django-crontab-agent/schedule-task-codes.txt"
    workspace: "/tmp/"
    server-address: None
    server-name: None
    server-aclkey: None
    
  2. Fields server-name/server-aclkey/server-address are required, and must match the server settings.
  3. Install agent cronjob by calling sub-command: install.
    django-crontab-agent install -c config.yml
    
  4. Setup schedule on you manager server.

Releases

v0.1.9 2020/02/21

  • Fix log setup.

v0.1.7 2021/01/28

  • First Relase

Release files for django-crontab-agent 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-crontab-agent 0.1.9
File Size Uploaded
django-crontab-agent-0.1.9.tar.gz 5.0 kB Details

Release files / django-crontab-agent-0.1.9.tar.gz

Download URL django-crontab-agent-0.1.9.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
12f7fb85e0ddc36636e4454ea56ef662b741008be4360c70564bdf2e82f3b54d
BLAKE2b-256 checksum
How to use checksums
dd27027d61e4f69a12b7f34c6f3db82d223f7c45ad1a1021016f6f1b87fd4900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1.9 This release

1 release file

0.1.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page