Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to control charge type (default or adhoc) for a given attempt config #229

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions v1/scheduler/attempt_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ type AttemptConfig struct {
ShouldTokenize bool `json:"shouldTokenize,omitempty" yaml:"shouldTokenize,omitempty"`

RecoveryAgentConnectorID string `json:"recoveryAgentConnectorID" yaml:"recoveryAgentConnectorID"`

ChargeType ChargeType `json:"chargeType" yaml:"chargeType" validate:"oneof='' unscheduled"`
}
7 changes: 7 additions & 0 deletions v1/scheduler/enums.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,10 @@ const (
// ConnectorRetryTypePanToToken Use the Pan first, cascade to Token if available
ConnectorRetryTypePanToToken ConnectorRetryType = "pan-token"
)

type ChargeType string

const (
ChargeTypeDefault ChargeType = ""
ChargeTypeUnscheduled = "unscheduled"
)
Loading