Manage
git clone $GITHUB/$GIST
Open/Close
- How a process works?
- STDIN/STDOUT
Flow
Read mermaid tutorial at:
https://mermaid.js.org/syntax/flowchart.html
flowchart TD
subgraph MAIN
01["Deside $dir by date"]
subgraph FOR_EACH_FILE
001["Write $runningLog, check if it exists"]
002["Check locationType"]
003["Check $dir/$filename exists"]
004["Check $result"]
006["Check $dbServer"]
001-->002
002--1-->003-->004
end
end
subgraph GENERATEFILENAME
11["Use $IXDT to get days"]
12["Write $configFile based $indexList"]
11-->12
end
subgraph GETFILENAME
21["Get list of files from $configFile"]
end
subgraph GETCONSULTINGJOB
31["Download file by mydata.sh"]
end
subgraph CONNECTDB
end
subgraph UPDATETODB
end
subgraph GETSLEEPTIME
end
subgraph PARSEFILE
end
subgraph SENDEMAIL
end
subgraph MAKEDONE
end
01-->GENERATEFILENAME-->GETFILENAME-->FOR_EACH_FILE
002--else-->GETCONSULTINGJOB-->004
004--not 0-->GETSLEEPTIME-->FOR_EACH_FILE
004--0-->PARSEFILE
PARSEFILE--success-->CONNECTDB-->UPDATETODB-->006
PARSEFILE--fail-->GETSLEEPTIME-->FOR_EACH_FILE
006--$PROD/$PROD_DB-->SENDEMAIL-->MAKEDONE
006--else-->MAKEDONE