diff options
| -rw-r--r-- | scripts/allocate_bonds.service | 2 | ||||
| -rw-r--r-- | scripts/ice.service | 2 | ||||
| -rw-r--r-- | scripts/quantifi-compression.service | 2 | ||||
| -rw-r--r-- | scripts/quantifi-download.service | 4 | ||||
| -rw-r--r-- | scripts/quantifi-recon.service | 2 | ||||
| -rw-r--r-- | scripts/quantifi-trades.service | 2 | ||||
| -rw-r--r-- | scripts/quantifi@.service | 2 | ||||
| -rw-r--r-- | scripts/task-runner.service | 7 |
8 files changed, 10 insertions, 13 deletions
diff --git a/scripts/allocate_bonds.service b/scripts/allocate_bonds.service index a63b4e55..2ea73c07 100644 --- a/scripts/allocate_bonds.service +++ b/scripts/allocate_bonds.service @@ -1,6 +1,6 @@ [Unit] Description=send allocation email and upload to bbh -OnFailure=onfailure@%n.service +OnFailure=monitor@%n [Service] Type=oneshot diff --git a/scripts/ice.service b/scripts/ice.service index 732c1df6..82e28337 100644 --- a/scripts/ice.service +++ b/scripts/ice.service @@ -1,6 +1,6 @@ [Unit] Description=Download Ice reports -OnFailure=onfailure@%n.service +OnFailure=monitor@%n [Service] Type=simple diff --git a/scripts/quantifi-compression.service b/scripts/quantifi-compression.service index 627e4968..5cdb8393 100644 --- a/scripts/quantifi-compression.service +++ b/scripts/quantifi-compression.service @@ -1,6 +1,6 @@ [Unit] Description=Upload compressed cds -OnFailure=onfailure@%n +OnFailure=monitor@%n [Service] Type=oneshot diff --git a/scripts/quantifi-download.service b/scripts/quantifi-download.service index 9fc2b23a..735516de 100644 --- a/scripts/quantifi-download.service +++ b/scripts/quantifi-download.service @@ -1,6 +1,6 @@ [Unit] Description=Download from quantifi -OnFailure=onfailure@%n.service +OnFailure=monitor@%n [Service] Type=simple @@ -8,4 +8,4 @@ User=guillaume Group=guillaume ExecStart=/usr/bin/python download_reports.py WorkingDirectory=/home/guillaume/projects/quantifi -EnvironmentFile=/etc/serenitas.conf
\ No newline at end of file +EnvironmentFile=/etc/serenitas.conf diff --git a/scripts/quantifi-recon.service b/scripts/quantifi-recon.service index de270b62..b3930f0c 100644 --- a/scripts/quantifi-recon.service +++ b/scripts/quantifi-recon.service @@ -1,6 +1,6 @@ [Unit] Description=Recon Quantifi -OnFailure=onfailure@%n.service +OnFailure=monitor@%n [Service] Type=simple diff --git a/scripts/quantifi-trades.service b/scripts/quantifi-trades.service index fed448b9..54329fec 100644 --- a/scripts/quantifi-trades.service +++ b/scripts/quantifi-trades.service @@ -1,6 +1,6 @@ [Unit] Description=Upload trades -OnFailure=onfailure@%n +OnFailure=monitor@%n [Service] Type=oneshot diff --git a/scripts/quantifi@.service b/scripts/quantifi@.service index 85a3b7ff..c8b4536f 100644 --- a/scripts/quantifi@.service +++ b/scripts/quantifi@.service @@ -1,6 +1,6 @@ [Unit] Description=Upload to quantifi -OnFailure=onfailure@%n.service +OnFailure=monitor@%n [Service] Type=simple diff --git a/scripts/task-runner.service b/scripts/task-runner.service index c1a79453..27b590cd 100644 --- a/scripts/task-runner.service +++ b/scripts/task-runner.service @@ -1,16 +1,13 @@ [Unit] Description=Run Redis tasks After=network.target - +OnFailure=monitor@%n [Service] SyslogIdentifier=task-runner Type=notify ExecStart=/usr/bin/python -u /home/guillaume/projects/code/python/task_runner.py WorkingDirectory=/home/guillaume/projects/code/python -Environment=SERENITAS_DATA_DIR=/home/serenitas/CorpCDOs/data -Environment=SERENITAS_LOG_DIR=/home/serenitas/CorpCDOs/logs -Environment=SERENITAS_CONFIG_DIR=/home/guillaume/projects/code -Environment=SERENITAS_BASE_DIR=/home/serenitas/CorpCDOs +EnvironmentFile=/etc/serenitas.conf Environment=OMP_NUM_THREADS=4 Environment='R_LIBS_USER=/home/guillaume/R/%%p-library/%%v' Environment=PGPASSFILE=/home/guillaume/.pgpass |
