Skip to content

Commit

Permalink
minor tweaks [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi18av committed Mar 13, 2024
1 parent 91c66e9 commit d29b1d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.0.3-rc
version=0.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class NomadService implements Closeable{
)


if( config.jobOpts.volumeSpec.type == NomadConfig.VOLUME_CSI_TYPE){
if( config.jobOpts.volumeSpec && config.jobOpts.volumeSpec.type == NomadConfig.VOLUME_CSI_TYPE){
taskGroup.volumes = [:]
taskGroup.volumes[config.jobOpts.volumeSpec.name]= new VolumeRequest(
type: config.jobOpts.volumeSpec.type,
Expand All @@ -130,7 +130,7 @@ class NomadService implements Closeable{
)
}

if( config.jobOpts.volumeSpec.type == NomadConfig.VOLUME_HOST_TYPE){
if( config.jobOpts.volumeSpec && config.jobOpts.volumeSpec.type == NomadConfig.VOLUME_HOST_TYPE){
taskGroup.volumes = [:]
taskGroup.volumes[config.jobOpts.volumeSpec.name]= new VolumeRequest(
type: config.jobOpts.volumeSpec.type,
Expand Down Expand Up @@ -190,7 +190,7 @@ class NomadService implements Closeable{
it.modifyIndex
}?.last()
String currentState = last?.taskStates?.values()?.last()?.state
log.info "Task $jobId , state=$currentState"
log.debug "Task $jobId , state=$currentState"
currentState ?: "Unknown"
}

Expand Down

0 comments on commit d29b1d7

Please sign in to comment.