Skip to main content

Django simpletask2 handler server.

Project description

django-simpletask2-server

The server program used with django-simpletask2. After startup, it can automatically process the asynchronous processing tasks generated by django-simpletask2.

Install

pip install django-simpletask2-server

Usage

C:\test\django-simpletask2>django-simpletask2-server --help
Usage: django-simpletask2-server [OPTIONS] COMMAND [ARGS]...

Options:
  --logfmt TEXT
  --logfile TEXT
  --loglevel TEXT
  --pidfile TEXT                  pidfile file path.
  --workspace TEXT                Set running folder
  --daemon / --no-daemon          Run application in background or in
                                  foreground.

  -c, --config TEXT               Config file path. Application will search
                                  config file if this option is missing. Use
                                  sub-command show-config-fileapaths to get
                                  the searching tactics.

  --error-sleep INTEGER
  --idle-sleep INTEGER
  -t, --threads INTEGER
  --auto-reset-task-interval INTEGER
  --do-auto-reset-task / --no-do-auto-reset-task
  --task-pull-timeout INTEGER
  --task-pull-engine TEXT
  --channel-flags-template TEXT
  --channel-name-strip-regex TEXT
  --channel-name-template TEXT
  -c, --channels TEXT
  -r, --redis TEXT
  -a, --aclkey TEXT
  -s, --server TEXT
  --help                          Show this message and exit.

Commands:
  restart                Restart Daemon application.
  show-config-filepaths  Print out the config searching paths.
  start                  Start daemon application.
  stop                   Stop daemon application.

Config items

  • server: Required. Default to: http://127.0.0.1:8000/django-simpletask2/。
  • aclkey: Required. No default value.
  • channels: Required. Default to "default".
  • threads: Required. Default to 1.
  • task-pull-engine Required. Default to "redis". Other options are: api.
  • idle_sleep: Default to 5 seconds.
  • error_sleep: Default to 5 seconds.

Releases

v0.0.6 2021/09/24

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-simpletask2-server-0.0.6.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file django-simpletask2-server-0.0.6.tar.gz.

File metadata

  • Download URL: django-simpletask2-server-0.0.6.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for django-simpletask2-server-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ade650f263b752acef1c0e41b55d86d89265b8186b12505ea5e6458461ea8c02
MD5 60ce8b3c64bd015d8ca52493511c1612
BLAKE2b-256 2068d1545203d319b3a91d8371fa6a5bcfe0d6e7aa28941c854974fef2320eae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page