Skip to main content

task scheduler for pyramid framework

Project description

pyramid_task_scheduler

Build Status coming soon

Install

install packages pip install pyramid-task-scheduler

or require in setup.py

add the follwing line to your Configuratior section of your pyramid application: e.g

    config = Configurator(settings=settings)
    config.include('pyramid_task_scheduler')  # Add this Line

Modes

json crontab

add the following two lines to your .ini file

pyramid_task_scheduler_mode = json
pyramid_task_scheduler_path = path_to/crontab.json

single cron crontab example:

{
	"cron": [
		{
			"name": "first_cron",
			"import_script": "import_script",
			"exec_func": "function_to_execute",
			"crontab_time": "0 * * * *"
		}
	]
}

multiple crons crontab example:

{
    "cron": [
        {
            "name": "first_cron",
            "import_script": "import_script",
            "exec_func": "function_to_execute",
            "crontab_time": "0 * * * *"
        },
        {
            "name": "second_cron",
            "import_script": "import_script",
            "exec_func": "function_to_execute",
            "crontab_time": "0 * * * *"
        }
    ]   
}

NOTE

this package is alpha experimental. It is recommened to NOT use it for productional environments.

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

pyramid_task_scheduler-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyramid_task_scheduler-0.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pyramid_task_scheduler-0.0.3.tar.gz.

File metadata

  • Download URL: pyramid_task_scheduler-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pyramid_task_scheduler-0.0.3.tar.gz
Algorithm Hash digest
SHA256 898ff79f5420275d3fa5e29d41b3664fa10c3ab982eab7cf6da751dbb80c6755
MD5 db22c0690f563ca1c1bb013b62bb1932
BLAKE2b-256 36ec38ef7bb829b2e6ee46fded385c46c9ae076fd18610e3b6ab0bf9dd876922

See more details on using hashes here.

File details

Details for the file pyramid_task_scheduler-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyramid_task_scheduler-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pyramid_task_scheduler-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e83cc66c80abc2c7855c5382948298973e1b1a4e14884f51a65786feec113b5
MD5 89a72b169f9995171dbcb9d83720a2bc
BLAKE2b-256 515e4870abaed3065b8de1035d98d36eda968e6e7b6eddbf7eacf0d33c94921a

See more details on using hashes here.

Supported by

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