[PR #984] PeriodicTask 注册任务的时候主动带上id #2985

Open
opened 2026-03-15 21:13:55 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/984
Author: @fucktx
Created: 12/10/2024
Status: 🔄 Open

Base: masterHead: master


📝 Commits (3)

  • 1e87f20 PeriodicTask 注册任务的时候主动带上id,方便排查和更新数据从db中
  • 51b4451 暴漏出来M,可以知道哪些数据是注册成功,方便维护更新
  • c5a964b Merge branch 'hibiken:master' into master

📊 Changes

4 files changed (+31 additions, -30 deletions)

View changed files

📝 example_test.go (+2 -2)
📝 periodic_task_manager.go (+15 -14)
📝 scheduler.go (+9 -9)
📝 scheduler_test.go (+5 -5)

📄 Description

In this way, whether the configuration is read from the db or the configuration file, after the task is registered, you can easily compare the registered tasks. If the tasks are not registered, you can perform subsequent logical processing


🔄 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/984 **Author:** [@fucktx](https://github.com/fucktx) **Created:** 12/10/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`1e87f20`](https://github.com/hibiken/asynq/commit/1e87f20b06fbdace535da487bbb9f1c7d71ba74c) PeriodicTask 注册任务的时候主动带上id,方便排查和更新数据从db中 - [`51b4451`](https://github.com/hibiken/asynq/commit/51b44519354e44c377da0f24bdd356f031d70557) 暴漏出来M,可以知道哪些数据是注册成功,方便维护更新 - [`c5a964b`](https://github.com/hibiken/asynq/commit/c5a964bb266ec442f5603a28c87b740dfcad1d1e) Merge branch 'hibiken:master' into master ### 📊 Changes **4 files changed** (+31 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `example_test.go` (+2 -2) 📝 `periodic_task_manager.go` (+15 -14) 📝 `scheduler.go` (+9 -9) 📝 `scheduler_test.go` (+5 -5) </details> ### 📄 Description In this way, whether the configuration is read from the db or the configuration file, after the task is registered, you can easily compare the registered tasks. If the tasks are not registered, you can perform subsequent logical processing --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2985
No description provided.