From 87476865e5f7362dc8b98e317aa3271fc7c8e39c Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 6 Nov 2024 11:07:14 -0500 Subject: [PATCH] template for adding a new script --- crc/scripts/script_template.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 crc/scripts/script_template.py diff --git a/crc/scripts/script_template.py b/crc/scripts/script_template.py new file mode 100644 index 00000000..6915094f --- /dev/null +++ b/crc/scripts/script_template.py @@ -0,0 +1,14 @@ +from crc.api.common import ApiError +from crc.scripts.script import Script + + +class ScriptTemplate(Script): + + def get_description(self): + return """This is my description""" + + def do_task_validate_only(self, task, study_id, workflow_id, *args, **kwargs): + return self.do_task(task, study_id, workflow_id, *args, **kwargs) + + def do_task(self, task, study_id, workflow_id, *args, **kwargs): + pass