Skip to content

Commit

Permalink
Add a systemd unit for running the pipeline and use conda run
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed May 23, 2024
1 parent ad0b914 commit fb399fa
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
12 changes: 0 additions & 12 deletions data/rnaseq-pipeline-viewer.service

This file was deleted.

3 changes: 3 additions & 0 deletions data/systemd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This directory contains systemctl unit and timers to launch the RNA-Seq
pipeline and its webviewer.

13 changes: 13 additions & 0 deletions data/systemd/rnaseq-pipeline-viewer.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=PavLab RNA-Seq Pipeline Viewer
Requires=luigid.service
After=multi-user.target

[Service]
Type=simple
WorkingDirectory=/space/grp/Pipelines/rnaseq-pipeline
ExecStart=/space/grp/poirigui/miniconda3/condabin/conda run --no-capture-output -p /space/grp/Pipelines/rnaseq-pipeline/env gunicorn -e SCRIPT_NAME=/rnaseq-pipeline -b 0.0.0.0:8000 rnaseq_pipeline.webviewer:app --access-logfile pipeline-output/webviewer-logs/access.log --error-logfile pipeline-output/webviewer-logs/error.log
User=poirigui

[Install]
WantedBy=multi-user.target
13 changes: 13 additions & 0 deletions data/systemd/rnaseq-pipeline.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=PavLab RNA-Seq Pipeline
Requires=luigid.service
After=multi-user.target

[Service]
Type=simple
WorkingDirectory=/space/grp/Pipelines/rnaseq-pipeline
ExecStart=/space/grp/poirigui/miniconda3/condabin/conda run --no-capture-output -p /space/grp/Pipelines/rnaseq-pipeline/env submit-experiments-from-gsheet --spreadsheet-id 17xm2eFFqhhT-M6-jTC_lsar7RMgk8Ln-TwQPDWlRfIY --sheet-name RNA-SEQ --workers 200
User=poirigui

[Install]
WantedBy=multi-user.target

0 comments on commit fb399fa

Please sign in to comment.