EVL – ETL Tool


Products, services and company names referenced in this document may be either trademarks or registered trademarks of their respective owners.

Copyright © 2017–2022 EVL Tool, s.r.o.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Table of Contents

Crontab

(since EVL 2.4)

Create/update EVL section of current user’s crontab based on ‘crontab.sh’ file from current directory or from <project_dir>.

Synopsis

evl crontab update 
  [-p|--project=<project_dir>] [-v|--verbose]

evl crontab
  ( --help | --usage | --version )

Options

-p, --project=<project_dir>

specify project folder if not the current working one

Standard options:

--help

print this help and exit

--usage

print short usage information and exit

-v, --verbose

print to stderr info/debug messages of the component

--version

print version and exit

Examples

  1. There is a ‘crontab.sh’ file in the EVL project created by ‘evl project new’ or ‘evl project sample’. It is usually a good start.
  2. Example of ‘crontab.sh’ file:
    # crontab.sh -- schedule EVL project workflows
    #
    # This file is processed by 'evl crontab update' command to create/update crontab entries
    # 
    
    # Schedule workflows per environment
    case "$EVL_ENV" in
      DEV)
        # Run workflow/sample.ewf Mo-Fr at 8:10, 10:10, 12:10, ..., 16:10
        schedule 10 8-16/2 * * 1-5 sample.ewf
      ;;
      TEST)
        # Run workflow/sample.ewf Mo-Fr at 5:10am
        schedule 10 5 * * 1-5 sample.ewf
        # Restart (with the same Order Date) Mo-Fr at 6:10am
        schedule --restart 10 6 * * 1-5 sample.ewf
      ;;
      PROD)
        # Run workflow/sample.ewf daily at 5:10am
        schedule 10 5 * * * sample.ewf
        # Restart (with the same Order Date) at 6:10am
        schedule --restart 10 6 * * * sample.ewf
      ;;
    esac