Skip to content

Commit

Permalink
Merge pull request #713 from luraproject/fix_async_timeouts
Browse files Browse the repository at this point in the history
Async Agents: set the proper timeouts
  • Loading branch information
taik0 authored Mar 7, 2024
2 parents 54ecfd5 + ebe2413 commit 6e9eacf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion async/asyncagent.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: Apache-2.0

/*
*/
package async

Expand Down Expand Up @@ -66,8 +65,13 @@ func (a AgentStarter) Start(

logger.Debug(fmt.Sprintf("[SERVICE: AsyncAgent][%s] Starting the async agent", agent.Name))

for i := range agent.Backend {
agent.Backend[i].Timeout = agent.Consumer.Timeout
}

endpoint := &config.EndpointConfig{
Endpoint: agent.Name,
Timeout: agent.Consumer.Timeout,
Backend: agent.Backend,
ExtraConfig: agent.ExtraConfig,
}
Expand Down

0 comments on commit 6e9eacf

Please sign in to comment.