Skip to content

Commit

Permalink
allow null in retries external task's response to allow to indicate f…
Browse files Browse the repository at this point in the history
…irst retry
  • Loading branch information
CezaryTarnowski-TomTom authored and liderman committed Apr 11, 2022
1 parent 5b9b9ff commit 7643ad3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions external-task.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type ResExternalTask struct {
ProcessInstanceId string `json:"processInstanceId"`
// The id of the tenant the external task belongs to
TenantId string `json:"tenantId"`
// The number of retries the task currently has left
Retries int `json:"retries"`
// The number of retries the task currently has left. Could be null in case retries were not set earlier and this is the first retry.
Retries *int `json:"retries"`
// A flag indicating whether the external task is suspended or not
Suspended bool `json:"suspended"`
// The id of the worker that possesses or possessed the most recent lock
Expand Down Expand Up @@ -192,8 +192,8 @@ type ResLockedExternalTask struct {
ProcessInstanceId string `json:"processInstanceId"`
// The id of the tenant the external task belongs to
TenantId string `json:"tenantId"`
// The number of retries the task currently has left
Retries int `json:"retries"`
// The number of retries the task currently has left. Could be null in case retries were not set earlier and this is the first retry.
Retries *int `json:"retries"`
// The id of the worker that possesses or possessed the most recent lock
WorkerId string `json:"workerId"`
// The priority of the external task
Expand Down

0 comments on commit 7643ad3

Please sign in to comment.