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

建议:单个脚本按指定账号个数并发执行 #2579

Closed
1 task done
sola237 opened this issue Nov 23, 2024 · 2 comments
Closed
1 task done

建议:单个脚本按指定账号个数并发执行 #2579

sola237 opened this issue Nov 23, 2024 · 2 comments

Comments

@sola237
Copy link

sola237 commented Nov 23, 2024

Clear and concise description of the problem

现有并发功能conc是全部账号并发,或者执行如1-20号账号全部并发
但是如果服务器配置跟不上,全部并发会卡死,指定账号并发只能分组建立多个任务
那可以实现单个脚本按指定账号个数并发执行吗?
比如:我有100个账号,想每次并发5个(或者10个账号,按我机器性能自定义),一共分20次跑完,这样可以实现吗?

Suggested solution

如上

Alternative

No response

Additional context

No response

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@sola237
Copy link
Author

sola237 commented Nov 23, 2024

或者参考autman这样的分组设置~

携带2个参数:conc和groups
conc表示并发使用的环境变量名称
groups表示分组并发情况,也可不携带,不携带时为全并发,即有多少个环境变量就同时运行多少个脚本
示例:conc=JD_COOKIE&groups=[0,4-20],[1],[2],[3]
表示并发的是JD_COOKIE这个环境变量
分4组并发(即4个进程),即序号为0,4-20的变量(共18个变量)为一组,序号1、2、3的变量各自为一组。

@whyour
Copy link
Owner

whyour commented Nov 27, 2024

conc 可以指定账号 1-5 6 8

@whyour whyour closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants