当前位置:网站首页>Message queue monitoring refund task batch process
Message queue monitoring refund task batch process
2022-07-01 11:58:00 【weixin_ two billion forty-seven million six hundred and seventy】
Last tutorial I introduced how to execute multiple queue tasks at one time through batch processing , For this batch scenario , If we don't know the current processing progress, we will always panic : When can the refund task in the queue be completed ? Will there be any errors in the processing process ? For these questions , today , Let's take a look at how to monitor the batch processing of queue tasks , It has been successfully processed in batch 、 Notify related personnel in case of failure .
Batch execution progress
First , In the process of execution , We can get the execution progress of the refund task batch through the following code 、 Remaining tasks 、 Failed tasks and whether to cancel :

Notify the organizer when successful
If you want to notify the relevant personnel after the batch is successfully executed , You can pass before executing batch processing then Callback to define , Here we will send an email notification to the meeting organizer :

Notify the organizer if it fails
and JavaScript Asynchronous programming in is similar , If batch execution fails , We can follow then Callback through catch The callback notifies the meeting organizer when it fails :

Notify organizer when finished
Last , We can also go through finally Callback defines the business logic after batch processing , Whether batch processing succeeds or fails , Will execute this code block :

summary :
The above is How to monitor the batch processing of queue tasks , It has been successfully processed in batch 、 The code needed in the process of notifying related personnel in case of failure , And in different situations, we can better contact relevant personnel to check .
边栏推荐
- Talk about the pessimistic strategy that triggers full GC?
- epoll介绍
- MQ prevent message loss and repeated consumption
- 研发效能度量框架解读
- Kafuka learning path (I) Kafuka installation and simple use
- The developer said, "this doesn't need to be tested, just return to the normal process". What about the testers?
- Compile and debug net6 source code
- TMUX usage
- leetcode 406. Queue Reconstruction by Height(按身高重建队列)
- 谈思生物直播—GENOVIS张洪妍抗体特异性酶切技术助力抗体药物结构表征
猜你喜欢

邻接矩阵无向图(一) - 基本概念与C语言

GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
![[MCU] [nixie tube] nixie tube display](/img/5e/9e14302b4e4f5e03601392ac90479d.png)
[MCU] [nixie tube] nixie tube display

Redis' attack tactics

Le semester manquant

Use set_ Handler filters out specific SystemC wrapping & error messages

Interpretation of R & D effectiveness measurement framework

Redis configuration environment variables

谈思生物直播—GENOVIS张洪妍抗体特异性酶切技术助力抗体药物结构表征

Software project management 9.2 Software project configuration management process
随机推荐
C # dependency injection (straight to the point) will be explained as soon as you see the series
I'm in Zhongshan. Where is a better place to open an account? Is it actually safe to open an account online?
Joint Time-Frequency and Time Domain Learning for Speech Enhancement
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
MQ-防止消息丢失及重复消费
邻接矩阵无向图(一) - 基本概念与C语言
Use set_ Handler filters out specific SystemC wrapping & error messages
redis中value/list
Brief explanation of the working principle, usage scenarios and importance of fingerprint browser
自组织是管理者和成员的双向奔赴
Seckill system 03 - redis cache and distributed lock
小米手机解BL锁教程
241. Design priority for operational expressions: DFS application questions
博途V15添加GSD文件
Kafuka learning path (I) Kafuka installation and simple use
Emotion analysis based on IMDB comment data set
想问问,证券开户有优惠吗手机开户是安全么?
How to make the development of liquidity pledge mining system, case analysis and source code of DAPP defi NFT LP liquidity pledge mining system development
二叉堆(一) - 原理与C实现
S7-1500plc simulation