Skip to content

Comments

Watchdog service#1253

Merged
droserasprout merged 3 commits intonextfrom
feat/watchdog
May 10, 2025
Merged

Watchdog service#1253
droserasprout merged 3 commits intonextfrom
feat/watchdog

Conversation

@droserasprout
Copy link
Collaborator

No description provided.

@droserasprout droserasprout added this to the 8.3.4 milestone May 10, 2025
@droserasprout droserasprout added the improvement Misc goodies not big enough to be called "feature" label May 10, 2025
@droserasprout droserasprout requested a review from Copilot May 10, 2025 18:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a configurable watchdog service to monitor long‐running callbacks, transactions, and other activities. Key changes include:

  • A new watchdog module with Watchdog and WatchdogManager classes to manage heartbeat and timeout events.
  • Integration of the watchdog service into transactions, context callbacks, and configuration with new schema and documentation updates.
  • Updates to related modules (models, exceptions, config, docs, etc.) to support and document the new watchdog functionality.

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/dipdup/watchdog.py New watchdog service implementation with heartbeat and timeout checks.
src/dipdup/transactions.py Added calls to watchdog.heartbeat and watchdog.reset in transaction flow.
src/dipdup/models/init.py Updated enum usage for index models for consistency.
src/dipdup/dipdup.py Integrated watchdog configuration into process management and background tasks.
src/dipdup/context.py Exposed watchdog property in the context for global accessibility.
src/dipdup/config/init.py Updated config definitions to include watchdog triggers and actions.
docs and schema files Updated documentation and JSON schema to reflect the new watchdog service.
CHANGELOG.md Changelog entry for the new configurable watchdog service.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@droserasprout droserasprout merged commit 7762e3e into next May 10, 2025
5 checks passed
@droserasprout droserasprout deleted the feat/watchdog branch May 10, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Misc goodies not big enough to be called "feature"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant