Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add FinalSync to sync nb and lb, push to run dashboard #3

Merged
merged 8 commits into from
Jan 7, 2025
18 changes: 17 additions & 1 deletion workflows/freezeman/monitor.nf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ process RunMultiQC {
"""
}

process FinalSync {
executor 'local'
errorStrategy = 'ignore'
maxForks 1

input:
tuple path(rundir), path(donefile)
MareikeJaniak marked this conversation as resolved.
Show resolved Hide resolved

"""
rsync -av $rundir/report/multiqc_* /lb/robot/research/freezeman-processing/*/*/$rundir/report
curl -k -X POST https://dashrunr.c3g-app.sd4h.ca/update \\
-H "descrambler-key: \$(cat ~/assets/run-processing-update-headers)" \\
-H "Content-Type: application/json" -d @$rundir/report/multiqc_data/multiqc_data.json
"""
}

process GenapUpload {
tag { multiqc.flowcell }
executor 'local'
Expand Down Expand Up @@ -171,7 +187,7 @@ workflow WatchFinish {
// Upload to GenAP + Send end-of-processing email notification
donefiles
| map { donefile -> [donefile.getParent().getParent().getParent(), donefile] }
| RunMultiQC
| (RunMultiQC & FinalSync)
MareikeJaniak marked this conversation as resolved.
Show resolved Hide resolved
| map { html, json -> [html, new MultiQC(json)] }
| (GenapUpload & EmailAlertFinish)
}