Add generic Luigi install logic
at least try to do what we can to reduce boilerplate
This commit is contained in:
parent
ca59000287
commit
6bf697da1d
9 changed files with 302 additions and 0 deletions
21
rattail_fabric2/deploy/luigi/cron-overnight.sh.mako
Executable file
21
rattail_fabric2/deploy/luigi/cron-overnight.sh.mako
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh -e
|
||||
<%text>############################################################</%text>
|
||||
#
|
||||
# overnight automation (${automation}) via cron
|
||||
#
|
||||
<%text>############################################################</%text>
|
||||
|
||||
|
||||
if [ "$1" = "--verbose" ]; then
|
||||
VERBOSE='--verbose'
|
||||
PROGRESS='--progress'
|
||||
else
|
||||
VERBOSE=
|
||||
PROGRESS=
|
||||
fi
|
||||
|
||||
cd ${envroot}
|
||||
|
||||
RATTAIL="bin/rattail --config=app/cron.conf $PROGRESS"
|
||||
|
||||
$RATTAIL run-n-mail --no-versioning --skip-if-empty --subject 'Overnight automation: ${automation}' ${envroot}/app/overnight_${automation.lower()}.sh
|
Loading…
Add table
Add a link
Reference in a new issue