Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch probes to improve reliability #166

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions file_watcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def start_watching(self) -> None:
Start the PollingObserver with the queue based event handler and the given queue
:return: None
"""
write_readiness_probe_file()

def _event_occurred(path_to_add: Union[Path, None]) -> None:
if path_to_add is not None:
Expand Down
4 changes: 2 additions & 2 deletions file_watcher_operator/file_watcher_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def generate_deployment_body(
else
exit 1
fi
initialDelaySeconds: 10
initialDelaySeconds: 600
periodSeconds: 10
livenessProbe:
exec:
Expand All @@ -127,7 +127,7 @@ def generate_deployment_body(
else
exit 1
fi
initialDelaySeconds: 10
initialDelaySeconds: 600
failureThreshold: 3
periodSeconds: 10
volumeMounts:
Expand Down