Metadata-Version: 2.1
Name: django-crontab-agent
Version: 0.1.7
Summary: 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.
Home-page: UNKNOWN
Author: zencore
Author-email: dobetter@zencore.cn
License: MIT
Description: # 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:\gitlab.zc.local\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
            cronjob-for-agent: '* * * * * root {django_crontab_agent_command} sync -c {config} >> /dev/null 2>&1'
            django-crontab-agent-command: django-crontab-agent
            log: /var/log/django-crontab-agent.log
            log-level: DEBUG
            schedule-exec-command: '{django_crontab_agent_command} exec -c {config} {schedule} >> /dev/null 2>&1'
            schedule-task-codes-file: /etc/django-crontab-agent/schedule-task-codes.txt
            schedules: /etc/django-crontab-agent/schedules/
            server-codes-file: /etc/django-crontab-agent/server-code.txt
            workspace: /tmp/
            server-name: null
            server-aclkey: null
            server-address: null
            ```
        1. Fields server-name/server-aclkey/server-address are required, and must match the server settings.
        1. Install agent cronjob by calling sub-command: install.
            ```
            django-crontab-agent install -c config.yml
            ```
        1. Setup schedule on you manager server.
        
        
        ## Releases
        
        ### v0.1.7 2021/01/28
        
        - First Relase
        
Keywords: django extensions
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Description-Content-Type: text/markdown
