19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/cnvrg/experiment.rb', line 19
def start(input, platform, machine_name, start_commit, name, email_notification, machine_activity,script_path,
sync_before_terminate, periodic_sync)
res = Cnvrg::API.request(@base_resource + "experiment/start", 'POST',
{input: input, platform: platform, machine_name: machine_name, start_commit: start_commit,
title: name, email_notification: email_notification, machine_activity: machine_activity,script_path:script_path})
Cnvrg::CLI.is_response_success(res,false)
@slug = res.to_h["result"].to_h["slug"]
@sync_before_terminate = res.to_h["result"].to_h["sync_before_terminate"]
@sync_delay_time = res.to_h["result"].to_h["sync_delay_time"]
@output_dir = res.to_h["result"].to_h["output_dir"]
return res
end
|