Skip to content

Commit

Permalink
ver 0.2.0
Browse files Browse the repository at this point in the history
将并发模式修改为 每个工作线程一个信箱,通过分配并发队列的方式来控制并发量
  • Loading branch information
ipconfiger committed Dec 30, 2023
1 parent fda4188 commit 6734e0e
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 91 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ JSON Body的格式如下:
"delay": 0, # 延迟执行的秒数,0为即时触发
"name": "命令名", # GET|POST的时候是请求地址,EXEC为命令名,MAIL_TO为邮件名
"params": "参数", # GET时为QueryString,POST时是JSON字符串,EXEC时为空格隔开的参数,MAIL_TO的时候为专门定义的JSON字符串
"cc": 3, # 支持并行执行的数量,0为不限制
"cf": "test" # 并行标识,相同标识的处于相同的并行队列
"cc": "1 3", # 空格隔开的指定线程编号,这里指定两个线程,表示最多可以并行执行2个任务,留空表示不限制
}

MAIL_TO 的params的JSON结构
Expand Down
Loading

0 comments on commit 6734e0e

Please sign in to comment.