[PR #367] [MERGED] Record total tasks processed/failed #722

Closed
opened 2026-03-02 06:05:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/367
Author: @hibiken
Created: 12/17/2021
Status: Merged
Merged: 12/17/2021
Merged by: @hibiken

Base: masterHead: feat/total_counters


📝 Commits (5)

  • d9d4280 Add ProcessedTotalKey and FailedTotalKey to base package
  • ff0ac4f Update rdb package to record total processed/failed counters
  • b652767 Add ProcessedTotal and FailedTotal fields to QueueInfo
  • 1b5e9e3 (x/metrics): Export total tasks processed/failed counter metrics
  • e711293 Minor doc fix

📊 Changes

10 files changed (+383 additions, -96 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 inspector.go (+23 -16)
📝 inspector_test.go (+35 -17)
📝 internal/base/base.go (+16 -0)
📝 internal/base/base_test.go (+34 -0)
📝 internal/rdb/inspect.go (+36 -26)
📝 internal/rdb/inspect_test.go (+60 -30)
📝 internal/rdb/rdb.go (+74 -6)
📝 internal/rdb/rdb_test.go (+78 -1)
📝 x/metrics/metrics.go (+26 -0)

📄 Description

This change allows metrics exporter to simply read in and export this counter.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynq/pull/367 **Author:** [@hibiken](https://github.com/hibiken) **Created:** 12/17/2021 **Status:** ✅ Merged **Merged:** 12/17/2021 **Merged by:** [@hibiken](https://github.com/hibiken) **Base:** `master` ← **Head:** `feat/total_counters` --- ### 📝 Commits (5) - [`d9d4280`](https://github.com/hibiken/asynq/commit/d9d42805b8bedcde594f80f7995d2dd111d70a82) Add ProcessedTotalKey and FailedTotalKey to base package - [`ff0ac4f`](https://github.com/hibiken/asynq/commit/ff0ac4f4e1aebd135f54382620d70954adbf9fea) Update rdb package to record total processed/failed counters - [`b652767`](https://github.com/hibiken/asynq/commit/b6527672c4be65fb572849e9bbb777696010c891) Add ProcessedTotal and FailedTotal fields to QueueInfo - [`1b5e9e3`](https://github.com/hibiken/asynq/commit/1b5e9e369e83e1ea0f142fc72b28cb97c542ac08) (x/metrics): Export total tasks processed/failed counter metrics - [`e711293`](https://github.com/hibiken/asynq/commit/e7112935888571e1c953343985b53205207461cd) Minor doc fix ### 📊 Changes **10 files changed** (+383 additions, -96 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `inspector.go` (+23 -16) 📝 `inspector_test.go` (+35 -17) 📝 `internal/base/base.go` (+16 -0) 📝 `internal/base/base_test.go` (+34 -0) 📝 `internal/rdb/inspect.go` (+36 -26) 📝 `internal/rdb/inspect_test.go` (+60 -30) 📝 `internal/rdb/rdb.go` (+74 -6) 📝 `internal/rdb/rdb_test.go` (+78 -1) 📝 `x/metrics/metrics.go` (+26 -0) </details> ### 📄 Description This change allows metrics exporter to simply read in and export this counter. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 06:05:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#722
No description provided.