Skip to content

Commit

Permalink
Merge 5318b67 into 30d7dbf
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Feb 11, 2022
2 parents 30d7dbf + 5318b67 commit cad5916
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 103 deletions.
6 changes: 2 additions & 4 deletions daliuge-engine/dlg/apps/archiving.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ def store(self, inputDrop):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] aparam/ngasSrv NGAS Server URL/localhost/String/readwrite/False/
Expand Down
6 changes: 2 additions & 4 deletions daliuge-engine/dlg/apps/bash_shell_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,8 @@ def execute(self, data):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @par EAGLE_END
Expand Down
6 changes: 2 additions & 4 deletions daliuge-engine/dlg/apps/crc.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ def run(self):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[out] port/data Data/String/
Expand Down
10 changes: 4 additions & 6 deletions daliuge-engine/dlg/apps/dockerapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ def waitForIp(self, timeout=None):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] cparam/user User//String/readwrite/False/
Expand Down Expand Up @@ -281,7 +279,7 @@ def initialize(self, **kwargs):
# who originally started the DALiuGE process as well. The information is passed through
# from the host to the engine container (if run as docker) and then further to any
# container running as a component.

pw = pwd.getpwuid(os.getuid())
self._user = pw.pw_name # use current user by default
self._userid = pw.pw_uid
Expand Down Expand Up @@ -474,7 +472,7 @@ def run(self):
logger.debug("No command specified, executing container without!")

c = DockerApp._get_client()

logger.debug(f"Final user for container: {self._user}:{self._userid}")
# Create container
self.container = c.containers.create(
Expand Down
6 changes: 2 additions & 4 deletions daliuge-engine/dlg/apps/dynlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,8 @@ def addStreamingInput(self, streamingInputDrop, back=True):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @par EAGLE_END
Expand Down
6 changes: 2 additions & 4 deletions daliuge-engine/dlg/apps/mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@
# \~English Number of cores used
# @param[in] cparam/group_end Group end/False/Boolean/readwrite/False/
# \~English Is this node the end of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @par EAGLE_END
Expand Down
24 changes: 8 additions & 16 deletions daliuge-engine/dlg/apps/plasma.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] port/plasma_ms_input Plasma MS Input/Measurement Set/
Expand Down Expand Up @@ -159,10 +157,8 @@ def dropCompleted(self, uid, drop_state):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] port/input_file Input File/File/
Expand Down Expand Up @@ -238,10 +234,8 @@ def run(self):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] port/plasma_ms_input Plasma MS Input/Measurement Set/
Expand Down Expand Up @@ -313,10 +307,8 @@ def run(self, **kwargs):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] port/input_ms Input MS/Measurement Set/
Expand Down
6 changes: 2 additions & 4 deletions daliuge-engine/dlg/apps/pyfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ def import_using_code(code):
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] aparam/func_name Function Name//String/readwrite/False/
Expand Down
6 changes: 2 additions & 4 deletions daliuge-engine/dlg/apps/scp.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@
# \~English Number of cores used
# @param[in] cparam/group_start Group start/False/Boolean/readwrite/False/
# \~English Is this node the start of a group?
# @param[in] cparam/input_error_threshold "Input error threshold (0 and 100)"/0/Integer/readwrite/False/
# \~English Indicates the tolerance to erroneous effective inputs, and after which the application will not be run but moved to the ERROR state
# @param[in] cparam/n_effective_inputs Number of effective inputs/-1/Integer/readwrite/False/
# \~English Application will block until this number of inputs have moved to the COMPLETED state. Special value of -1 means that all inputs are considered as effective
# @param[in] cparam/input_error_threshold "Input error rate (%)"/0/Integer/readwrite/False/
# \~English the allowed failure rate of the inputs (in percent), before this component goes to ERROR state and is not executed
# @param[in] cparam/n_tries Number of tries/1/Integer/readwrite/False/
# \~English Specifies the number of times the 'run' method will be executed before finally giving up
# @param[in] aparam/remoteUser Remote User//String/readwrite/False/
Expand Down
Loading

0 comments on commit cad5916

Please sign in to comment.