Skip to main content

Job scheduling based on filenames.

Project description

Simple clock/cron process that monitors a specific directory and run jobs based on its filename.

Currently filename with this pattern is supported:

(every X at time) where

X is [‘day’, ‘monday’, ‘tuesday’, ‘wednesday’,’thursday’, ‘friday’,’saturday’,’sunday’]

time is either in short form without minutes like 5PM or long form with minutes, 5:00PM

For example:

notebooks/generate_model (every day at 5pm).ipynb will trigger jupyter nbconvert to run every day at 5pm.

scripts/gen (every monday at 12pm).py will trigger python scripts/gen….py to run.

Features

  • Simple to use

  • Integrates well with Jupyter

  • Tested on Python 3.6

Usage

usage: jupyter-cron [-h] [-d] glob

Scans for file to run on a schedule based on its name

positional arguments:
  glob             specify glob to search eg. test/**/*.ipynb

optional arguments:
  -h, --help       show this help message and exit
  -d, --daemonize  daemonize the process

Meta

Quoc Le - @realQuoc - quocble@gmail.com

Distributed under the MIT license. See LICENSE.txt for more information.

https://github.com/quocble/jupyter-cron http://rst.ninjs.org/

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

jupyter-cron-0.1.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

jupyter_cron-0.1.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-cron-0.1.4.tar.gz.

File metadata

  • Download URL: jupyter-cron-0.1.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jupyter-cron-0.1.4.tar.gz
Algorithm Hash digest
SHA256 36bc880221611652c3019b96e04df84a8ce03b2e91f9924e2da096e446352a05
MD5 62fad34f0fb1a045c44111ad87d4051c
BLAKE2b-256 83722f681ca33d73af55e24ac7f06d0eaef4cc5b4b90c7bea302247598c5995d

See more details on using hashes here.

File details

Details for the file jupyter_cron-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_cron-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 18e971bca30709fcd327b8dac3a2b41f34bd2833b5b20c50361c07b5a4b1a5b2
MD5 ffdffce2fb481f9ccfd8dcd75b644bd4
BLAKE2b-256 6d1a5af1fdfd777e1dba7826aa23e3d822e4019b91d5ce119eee681537f3a890

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