Skip to content

Commit 27034d0

Browse files
committed
bugfixes
1 parent 46dc9ec commit 27034d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Client/job.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function RemoteHPC.save(job::Job, workflow = nothing; versioncheck=true, kwargs.
155155
job.version = lastver + 1
156156
@info "Job version: $(curver) => $(job.version)."
157157
end
158-
158+
job.dir = Jobs.main_job_dir(job)
159159
remote_calcs = RemoteHPC.Calculation[]
160160
for c in job.calculations
161161
append!(remote_calcs, Calculations.remote_calcs(job, c))

src/Jobs/job.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function main_job_dir(dir::AbstractString)
187187
d = split(dir, Jobs.VERSION_DIR_NAME)[1]
188188
return d[end] == '/' ? d[1:end-1] : d
189189
end
190-
main_job_dir(job::Job) = isabspath(job.dir) ? main_job_dir(job.dir) : main_job_dir(joinpath(Server(job), job.dir))
190+
main_job_dir(job::Job) = isabspath(job.dir) ? main_job_dir(job.dir) : main_job_dir(joinpath(Server(job.server), job.dir))
191191

192192
"""
193193
set_flow!(job::Job, should_runs::Pair{String, Bool}...)
@@ -271,7 +271,7 @@ for (f, strs) in zip((:cp, :mv), (("copy", "Copies"), ("move", "Moves")))
271271
p = joinpath(job, file)
272272
if file == VERSION_DIR_NAME
273273
continue
274-
elseif file == TEMP_CALC_DIR && !(temp || job.copy_temp_folders)
274+
elseif file == TEMP_CALC_DIR && !job.copy_temp_folders
275275
continue
276276
end
277277
if joinpath(job, file) == abspath(dest)

0 commit comments

Comments
 (0)