Description
This Epic is to track a new feature in PM that will allow users to specify Pre-processing, Post-processing scripts. Workflows will be added inside Launchers via SmartAttributes
.
-
Add new
SmarAttribute
that will be similar toauto_environment_variable
to allow user to choosekey
(ie, what type of script it is --after, afterok, afternook
) and invalue
user has to select any script from the dropdown list. -
In
Launchers.rb:submit()
, add the driver code to make it work. It will haveif-else
statement to submit preprocessing scripts before then gathering the job-ids and appending those to the main script. Post-processing scripts will include the job-id of the main script. -
Unlike other existing SmartAttributes, this
SmartAttribute
can be added more than once. Allowing it to be populated once for now and then in a separate PR will make it appendable multiple times. -
Other attributes, such as
cores / nodes
will all be part of the main script. Newly added scripts can either follow these or not (in that case, the user needs to specify the resources inside the script). Add a checkbox in theSmartAttribute
to describe this functionality. -
Handle errors from all kinds of scripts that are being executed and populate them nicely on the UI.
OodCore::Job::Adaptors::submit()
already has functionality to specify job-ids of the scripts that the current job is dependent upon, thus we don't have to make any changes there to fulfill this feature.