bug: artifact generation does not respect timeout value set using INFRAHUB_TIMEOUT value #5456
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
priority/2
This issue stalls work on the project or its dependents, it's a blocker for a release
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Infrahub version
1.1.2
Current Behavior
When a transformation, that is used by an artifact definition, does not define a timeout value, then the default will be used of 10s instead of respecting the value defined in the INFRAHUB_TIMEOUT environment variable.
This could lead to GraphQL queries timing out earlier than expected, which is a problem on larger datasets.
https://github.com/opsmill/infrahub/blob/stable/backend/infrahub/git/tasks.py#L350
https://github.com/opsmill/infrahub/blob/stable/backend/infrahub/git/integrator.py#L1270
Expected Behavior
If no timeout is defined on the transformation then
INFRAHUB_TIMEOUT
value should be respected.Steps to Reproduce
See code
Additional Information
No response
The text was updated successfully, but these errors were encountered: