Skip to content

Commit

Permalink
fix(queue): Upgrade keiko, keep deprecated attribute around (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed Apr 10, 2018
1 parent 1257c50 commit 51f452d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ junitVersion=1.0.2
jupiterVersion=5.0.2
junitLegacyVersion=4.12.0
spekVersion=1.1.5
keikoVersion=2.6.0
keikoVersion=2.6.1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.netflix.spinnaker.orca.pipeline.model.Execution
import com.netflix.spinnaker.orca.pipeline.model.Execution.ExecutionType
import com.netflix.spinnaker.orca.pipeline.model.Stage
import com.netflix.spinnaker.orca.pipeline.persistence.ExecutionRepository
import com.netflix.spinnaker.q.Attribute
import com.netflix.spinnaker.q.Message
import java.time.Duration

Expand Down Expand Up @@ -401,3 +402,11 @@ data class NoDownstreamTasks(
constructor(source: TaskLevel) :
this(source.executionType, source.executionId, source.application, source.stageId, source.taskId)
}

@Deprecated("Kept only to support old messages on the queue without having to do a migration")
@JsonTypeName("totalThrottleTime")
data class TotalThrottleTimeAttribute(var totalThrottleTimeMs: Long = 0) : Attribute {
fun add(throttleTimeMs: Long) {
this.totalThrottleTimeMs += throttleTimeMs
}
}

0 comments on commit 51f452d

Please sign in to comment.