Hi all-
I was wondering if there is a simple way to restart a long running script
in Julia. Right now my script will start where it left off when manually.
However, I'm not sure how to check that the process is not running/was
interrupted and spawn the process. My best guess it that it would process
roughly has follows:
state = true
while state == true
#check every minute
sleep(60)
data = readcsv("outputfile.csv")
#read file to check if process is finished
if size(data,1) < N
#some function to check if the process is running
if isrunning() == true
#Do nothing.Keep running
else
#some function to spawn new instance of julia
#run the code
include("myscript.jl")
end
else
#Job finished, exit while loop
state = false
end
end