Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.18 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.18 KB

MET-CRON Job Scheduler

Python job scheduler application for The Modern Engagement Tool project.

Getting Started

Development Environment

  • Install the following:
  • Install Dependencies
    • Run make setup in the root of the project (met-api)

Environment Variables

The development scripts for this application allow customization via an environment file in the root directory called .env. See an example of the environment variables that can be overridden in sample.env.

Commands

Development

The following commands support various development scenarios and needs. Before running the following commands run . venv/bin/activate to enter into the virtual env.

make run

Runs the python application.

make test

Runs the application unit tests

make db

Runs the application database migrations.

make lint

Lints the application code.

To run met-cron functionality on your local machine execute the pyhton commands located in the run files of this directory. For example the run_met_publish.sh file contains the coammnd to publish a scheduled engagement

python3 invoke_jobs.py ENGAGEMENT_PUBLISH