A very simple data jobs workflow manager written in a unique python script
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md Update README.md Sep 15, 2016
workflow.py Create workflow.py Sep 15, 2016
workflow_example.json Update workflow_example.json Sep 15, 2016



A very simple (data-oriented) jobs workflow manager written in a unique python script:

  • □ Linear dependencies between jobs
  • ✓ Complete or partial failures of the workflow
  • ✓ Retry number specific for each job
  • ✓ Time-out specific for each job
  • ✓ Skip successful jobs in case of complete restart
  • □ Single daily execution
  • ✓ Data backend: anything that SQLAlchemy handle
  • ✓ JSON external configuration file
  • ✓ Templated delta dates (Talend oriented through --context_param)
  • ✓ Allow delegation of job logging to Talend (StatCatcher), stderr is redirected to stdout


  • Modify database backend (any compatible with SQLAlchemy), and eventually table schema.name
  • Modify databse entry in workflow file
  • Create target table
--- MS SQL dialect version in schema monitoring
--- This is the default Talend StatCatcher table

DROP TABLE IF EXISTS [monitoring].[ETL_jobs_execution_monitoring] ;
CREATE TABLE [monitoring].[ETL_jobs_execution_monitoring] (
	[moment] [datetime] NOT NULL,
	[pid] [varchar](20) NOT NULL,
	[father_pid] [varchar](20) NOT NULL,
	[root_pid] [varchar](20) NOT NULL,
	[system_pid] [bigint] NOT NULL,
	[project] [varchar](50) NOT NULL,
	[job] [varchar](255) NOT NULL,
	[job_repository_id] [varchar](255) NOT NULL,
	[job_version] [varchar](255) NOT NULL,
	[context] [varchar](50) NOT NULL,
	[origin] [varchar](255) NULL,
	[message_type] [varchar](255) NULL,
	[message] [varchar](255) NULL,
	[duration] [bigint] NULL
) ;


Workflow example

   "description":"This file describes a sequence of jobs",


         "job_executable":"sh /my_path/my_jobA.sh",
         "job_executable":"sh /my_path/Talend_Job_B/Talend_Job_B_run.sh",

Command line options

  • job_file path of the json workflow definition
  • delta period to (re)load in days, months or years e.g. --delta "3 days". Work only if parametrized Talend job (--context_param Start={{ Start }} for instance). See code for more information.
  • job_names reload only a selection of the jobs (comma separated) of the workflow e.g. --job_names "Talend_Job_B"
  • force ignore existing day execution