Skip to content

Commit

Permalink
Merge pull request #91 from superfaceai/feature/simple-retry-policy
Browse files Browse the repository at this point in the history
feat: add simple retry policy config
  • Loading branch information
TheEdward162 authored Feb 26, 2022
2 parents 2f74d49 + 3e469f8 commit a445a99
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 36 deletions.
120 changes: 116 additions & 4 deletions src/interfaces/superjson/superjson.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,29 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"simple"
],
"type": "string"
},
"maxContiguousRetries": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -110,6 +133,10 @@
"minimum": 0,
"type": "integer"
},
"openTime": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
Expand All @@ -123,7 +150,8 @@
{
"enum": [
"circuit-breaker",
"none"
"none",
"simple"
],
"type": "string"
}
Expand Down Expand Up @@ -173,6 +201,29 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"simple"
],
"type": "string"
},
"maxContiguousRetries": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -219,6 +270,10 @@
"minimum": 0,
"type": "integer"
},
"openTime": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
Expand All @@ -232,7 +287,8 @@
{
"enum": [
"circuit-breaker",
"none"
"none",
"simple"
],
"type": "string"
}
Expand Down Expand Up @@ -333,6 +389,29 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"simple"
],
"type": "string"
},
"maxContiguousRetries": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -379,6 +458,10 @@
"minimum": 0,
"type": "integer"
},
"openTime": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
Expand All @@ -392,7 +475,8 @@
{
"enum": [
"circuit-breaker",
"none"
"none",
"simple"
],
"type": "string"
}
Expand Down Expand Up @@ -442,6 +526,29 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"simple"
],
"type": "string"
},
"maxContiguousRetries": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -488,6 +595,10 @@
"minimum": 0,
"type": "integer"
},
"openTime": {
"minimum": 0,
"type": "integer"
},
"requestTimeout": {
"minimum": 0,
"type": "integer"
Expand All @@ -501,7 +612,8 @@
{
"enum": [
"circuit-breaker",
"none"
"none",
"simple"
],
"type": "string"
}
Expand Down
Loading

0 comments on commit a445a99

Please sign in to comment.