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

test@test django-simpletask2-server % 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
  --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.
  show-configs           Print out the final config items.
  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.
  • redis: It is required when task-pull-engine is "redis". The value format likes: redis://:password@redis-server:redis-port/redis-db?decode_responses=True (The option decode_responses=True is required)
  • 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.
  • Other config items like logdevel, logfile, logfmt, workspace, pidfile, daemon and so on, see details of daemon-application.

Releases

v0.0.8

  • Doc update.

v0.0.7

  • Fix --channels option short name conflict problem.

v0.0.6

  • 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.1.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for django-simpletask2-server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8429316db1370870c94aa188d759aa6b9ccb9f62f4502203b1615a21310a4634
MD5 99516595e58793937f1db765765d012f
BLAKE2b-256 aaf126fb9896b8cc8d78d643be17a18874b1c9f7d441a2ab27d231fb282e40fb

See more details on using hashes here.

File details

Details for the file django_simpletask2_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_simpletask2_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce33fbcce0ee53ff8de4bcace686844fa4b90b7e7a3033b69b87b958e5909428
MD5 a7fcf4cb01d79c4e54134e66cf401f8c
BLAKE2b-256 8b776e930137944d7551f8ca60b0d2d8e17715b1456dcef914222a7e8282cc5f

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