Skip to content

Commit

Permalink
Add job name prefix just before job submit. (#3887)
Browse files Browse the repository at this point in the history
* Check for path in job name before finalizing it.

* Only add prefix to auto_job_name just before submit.
  • Loading branch information
euler-room authored Oct 24, 2024
1 parent 121dc72 commit 569be8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AutoJobName < Attribute
# Defaults to ondemand/[dev,sys]/projects
# @return [String] attribute value
def value
job_name(opts[:value] || 'Project Manager Job')
opts[:value] || 'Project Manager Job'
end

def widget
Expand All @@ -32,7 +32,7 @@ def label(*)
# @param fmt [String, nil] formatting of hash
# @return [Hash] submission hash
def submit(*)
{ script: { job_name: value } }
{ script: { job_name: job_name(value) } }
end

# TODO: need to sanitize the job name for some schedulers
Expand Down

0 comments on commit 569be8a

Please sign in to comment.