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

signals: use job queue to handle processing #4140

Merged
merged 40 commits into from
Nov 13, 2024
Merged

Conversation

mastercactapus
Copy link
Member

Description:
Uses the new job queue system to process signals

  • fixes a bug that caused only 5 messages per dest-svc-pair per hour
  • fixed an issue where it was possible to flood outgoing_messages over time if throttled
  • made public interfaces for engine module signatures

- Remove multiple instances of `sql.DB` and `Connector` usage.
- Switch to using `pgxpool` for database connections consistently.
- Simplify the shutdown process by ensuring proper resource cleanup.
- Implement a new lock querying method for the switchover state.
- Delete unused `connector.go` as it is no longer needed.
- Replace manual retry logic with higher-level config setup
- Remove custom retry driver and connector implementations
- Simplify code by using pgxpool's built-in configuration options
- Implement SWOConnUnlockAll to release all locks
- Configure PGX pool to unlock upon release of connections
- Eliminated import of the unused time package.
- Removed unnecessary pool configuration for health checks and connection idle time to simplify code.
- Updated to sqlc v1.27.0
- Removed sql-migrate dependency
- Enhanced parsing logic for migrations without external library
- Adjusted file mode representation to octal style
- Initialize River client and UI server in the app
- Add River-related error handling
- Update HTTP routing for River UI access
- Enhance navigation with a link to the River UI
- Create database migrations for River job management
- Integrated River for scheduling and job management
- Enforced signal limits with database functions
- Renamed and refactored scheduling logic
- Updated startup sequence for river initialization
@mastercactapus mastercactapus merged commit dea1380 into master Nov 13, 2024
8 checks passed
@mastercactapus mastercactapus deleted the river-signals branch November 13, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants