Functions - noetl/noetl GitHub Wiki

Function Description
addTime Returns instances of all dates between two dates given a timedelta
curPattern Finds all instances of a patter, stores them in a list, and iterates through the indices of the list.
doTest Executes the testList from the WORKFLOW.TEST.FUNCTIONS in the config file
forkBranches Iterates through the branchQueue, and on each iteration creates a Thread instance with a target function queue and arguments task and branchQueue that will be passed into runBranchQueue for each branch
getConfig Returns cfg, corresponding to the confRequest
getCursor Iterates through each element in cursor
getStep Retrieves the current step instance by accessing the branch's curStep in the list of the branch's steps
getTask
getWaittime Returns the waittime in seconds
initiateLog Gets the Log Directory path from the configuration, and if e directory does not already exist, it is created
initiateRep Opens the report file and writes the batchDateTime to it
main Opens and loads the configuration file, specified by the ConfigFileName, parses it, and stores it in a variable
makeBranches Sets up the join steps and branches
runBranchQueue Gets the next branch from the branchQueue
runQueue Gets the next job from the cursorQueue
runShell Loops through the execLists, which is a list of the step's command steps
runStep The cursorQueue is instantiated
runTask Iterates through each of the values in the start dictionary, and puts the branch in the branchQueue
runThreads Runs a certain number of cursors, determined by the number of threads (the size of the cursorQueue), in parallel
sendMail Executes the mail command, which sends a notification via mail, and writes information to the log file