Skip to content

Commit

Permalink
nha: increase hari timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Apr 6, 2020
1 parent 89211a0 commit cc63218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/nha/activities/hari.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

var hariClient = &http.Client{
// Unusual high value but needed since the server seems to be doing the indexing work synchronously.
Timeout: 10 * time.Minute,
Timeout: 20 * time.Minute,
Transport: &http.Transport{
DialContext: (&net.Dialer{
Timeout: 5 * time.Second,
Expand Down
2 changes: 1 addition & 1 deletion internal/workflow/receipts.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (w *ProcessingWorkflow) sendReceipts(ctx workflow.Context, params *sendRece
if disabled, _ := manager.HookAttrBool(w.manager.Hooks, "hari", "disabled"); !disabled {
opts := workflow.ActivityOptions{
ScheduleToStartTimeout: forever,
StartToCloseTimeout: time.Minute * 10,
StartToCloseTimeout: time.Minute * 20,
}
err := executeActivityWithAsyncErrorHandling(ctx, w.manager.Collection, params.CollectionID, opts, nha_activities.UpdateHARIActivityName, &nha_activities.UpdateHARIActivityParams{
SIPID: params.SIPID,
Expand Down

0 comments on commit cc63218

Please sign in to comment.