openstates / bobsled

🛷 cool task runner
MIT License
11 stars 1 forks source link

architecture plan #14

Closed jamesturk closed 7 years ago

jamesturk commented 7 years ago

The current version of bobsled was sort of thrown together as-needed. I've been thinking through what we actually need. Here's an outline of a plan for a future-proof bobsled.

Needed endpoints:

Lambdas:

Job States:

Example Job Schema:

name: NC
entrypoint: ./pupa-scrape.sh nc
memory_soft: 128
cron: 0 4 * * ? *
environment: openstates-pupa
image: openstates/openstates-pupa
enabled: true

Example Run Schema:

job: NC
entrypoint: ./pupa-scrape.sh nc
start: 2017-03-18
end: null
status: RUNNING
started_by: automatic
traceback: ...
jamesturk commented 7 years ago

Pacific states are now running new lambda as a test, should be ready for status check task