Skip to content

Commit ca57cad

Browse files
authored
Merge pull request #816 from CliMA/js/jobid-fix
set job_id for interactive runs
2 parents b50c102 + c28b83a commit ca57cad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

experiments/ClimaEarth/run_amip.jl

+5-4
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,18 @@ We can additionally pass the configuration dictionary to the component model ini
9292
include("cli_options.jl")
9393
parsed_args = parse_commandline(argparse_settings())
9494

95-
## the unique job id should be passed in via the command line
96-
job_id = parsed_args["job_id"]
97-
@assert !isnothing(job_id) "job_id must be passed in via the command line"
98-
9995
## modify parsed args for fast testing from REPL #hide
10096
if isinteractive()
10197
parsed_args["config_file"] =
10298
isnothing(parsed_args["config_file"]) ? joinpath(pkg_dir, "config/ci_configs/interactive_debug.yml") :
10399
parsed_args["config_file"]
100+
parsed_args["job_id"] = "interactive_debug"
104101
end
105102

103+
## the unique job id should be passed in via the command line
104+
job_id = parsed_args["job_id"]
105+
@assert !isnothing(job_id) "job_id must be passed in via the command line"
106+
106107
## read in config dictionary from file, overriding the coupler defaults in `parsed_args`
107108
config_dict = YAML.load_file(parsed_args["config_file"])
108109
config_dict = merge(parsed_args, config_dict)

0 commit comments

Comments
 (0)