Skip to content

Commit

Permalink
Metadata Writer - Added timeouts (#4037)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and Bobgy committed Jul 2, 2020
1 parent 8600000 commit e808795
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/metadata_writer/src/metadata_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def is_tfx_pod(pod) -> bool:
k8s_api.list_namespaced_pod,
namespace=namespace_to_watch,
label_selector=ARGO_WORKFLOW_LABEL_KEY,
timeout_seconds=1800, # Sometimes watch gets stuck
_request_timeout=2000, # Sometimes HTTP GET gets stuck
):
try:
obj = event['object']
Expand Down

0 comments on commit e808795

Please sign in to comment.