Skip to content

Commit

Permalink
Add alternative "cron" commands where the project id is user-settable…
Browse files Browse the repository at this point in the history
…, so they can be run against different projects
  • Loading branch information
tomdoel committed Oct 23, 2024
1 parent e46e9e4 commit dfca255
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
19 changes: 18 additions & 1 deletion email_chenies.json
Original file line number Diff line number Diff line change
Expand Up @@ -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#\"",
Expand Down Expand Up @@ -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": []
}
]
}
19 changes: 18 additions & 1 deletion email_listmode.json
Original file line number Diff line number Diff line change
Expand Up @@ -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#\"",
Expand Down Expand Up @@ -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": []
}
]
}
19 changes: 18 additions & 1 deletion email_radreads.json
Original file line number Diff line number Diff line change
Expand Up @@ -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#\"",
Expand Down Expand Up @@ -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": []
}
]
}

0 comments on commit dfca255

Please sign in to comment.