Skip to content

Commit

Permalink
Fix bugs in Fujitsu TCS adapter (#800)
Browse files Browse the repository at this point in the history
Fujitsu Code cleanup based on syntax and conventions
and Fix some bugs in Fujitsu TCS adapter
  • Loading branch information
mnakao authored Mar 6, 2023
1 parent 8dfe3c7 commit 9ad7843
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/ood_core/job/adapters/fujitsu_tcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,12 @@ def submit(script, after: [], afterok: [], afternotok: [], afterany: [])
else
args.concat ["-e", script.error_path]
end
args.concat ["--rscgrp", script.queue_name] unless script.queue_name.nil?
args.concat ["-L rscgrp=" + script.queue_name] unless script.queue_name.nil?
args.concat ["-p", script.priority] unless script.priority.nil?
args.concat ["--at", script.start_time.localtime.strftime("%C%y-%m-%dT%H:%M:%S")] unless script.start_time.nil?
args.concat ["-L \"elapse=" + seconds_to_duration(script.wall_time) + "\""] unless script.wall_time.nil?

# start_time: <%= Time.local(2023,11,22,13,4).to_i %> in form.yml.erb
args.concat ["--at", script.start_time.localtime.strftime("%C%y%m%d%H%M")] unless script.start_time.nil?
args.concat ["-L elapse=" + seconds_to_duration(script.wall_time)] unless script.wall_time.nil?
args.concat ["--bulk", "--sparam", script.job_array_request] unless script.job_array_request.nil?

# Set environment variables
Expand Down

0 comments on commit 9ad7843

Please sign in to comment.