From dfca2551bac5f33f285b1dbb4be33e25ae472d4c Mon Sep 17 00:00:00 2001 From: Tom Doel Date: Wed, 23 Oct 2024 08:53:19 +0100 Subject: [PATCH] Add alternative "cron" commands where the project id is user-settable, so they can be run against different projects --- email_chenies.json | 19 ++++++++++++++++++- email_listmode.json | 19 ++++++++++++++++++- email_radreads.json | 19 ++++++++++++++++++- 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/email_chenies.json b/email_chenies.json index be5f338..6b98df2 100644 --- a/email_chenies.json +++ b/email_chenies.json @@ -2,7 +2,7 @@ "name": "email-chenies", "description": "Send email listing subjects with phase 3 data and no Chenies Mews MR data", "label": "Chenies Mews email", - "version": "1.2", + "version": "1.3", "schema-version": "1.0", "type": "docker", "command-line": "email_chenies \"#PROJECTID#\" \"#MRPROJECTIDLIST#\" \"#EMAILLIST#\"", @@ -64,6 +64,23 @@ } ], "output-handlers": [] + }, + { + "name": "cron-email-chenies-project", + "label": "Send Chenies Mews email (cron)", + "description": "Send email listing subjects with phase 3 data that are missing Chenies Mews MR data (executed from cron event)", + "contexts": ["xnat:projectData"], + "external-inputs": [ + { + "name": "project", + "description": "Input project", + "type": "Project", + "required": true, + "load-children": false + } + ], + "derived-inputs": [], + "output-handlers": [] } ] } diff --git a/email_listmode.json b/email_listmode.json index ae0a601..becc437 100644 --- a/email_listmode.json +++ b/email_listmode.json @@ -2,7 +2,7 @@ "name": "email-listmode", "description": "Send email listing subjects with missing listmode data", "label": "Listmode email", - "version": "1.2", + "version": "1.3", "schema-version": "1.0", "type": "docker", "command-line": "email_listmode \"#PROJECTID#\" \"#THRESHOLDDAYS#\" \"#EMAILLIST#\"", @@ -64,6 +64,23 @@ } ], "output-handlers": [] + }, + { + "name": "cron-email-listmode-project", + "label": "Send listmode email (cron)", + "description": "Send email listing subjects with missing listmode data (executed from cron event)", + "contexts": ["xnat:projectData"], + "external-inputs": [ + { + "name": "project", + "description": "Input project", + "type": "Project", + "required": true, + "load-children": false + } + ], + "derived-inputs": [], + "output-handlers": [] } ] } diff --git a/email_radreads.json b/email_radreads.json index d9a04fb..af325de 100644 --- a/email_radreads.json +++ b/email_radreads.json @@ -2,7 +2,7 @@ "name": "email-radreads", "description": "Send email listing sessions without radreads", "label": "Radreads email", - "version": "1.2", + "version": "1.3", "schema-version": "1.0", "type": "docker", "command-line": "email_radreads \"#PROJECTID#\" \"#EXCLUDESESSIONS#\" \"#EMAILLIST#\"", @@ -64,6 +64,23 @@ } ], "output-handlers": [] + }, + { + "name": "cron-email-radreads-project", + "label": "Send radreads email (cron)", + "description": "Send email listing sessions requiring radreads (executed from cron event)", + "contexts": ["xnat:projectData"], + "external-inputs": [ + { + "name": "project", + "description": "Input project", + "type": "Project", + "required": true, + "load-children": false + } + ], + "derived-inputs": [], + "output-handlers": [] } ] }