【文件属性】:
文件名称:集群中任务的调度器Gascheduler.zip
文件大小:157KB
文件格式:ZIP
更新时间:2022-08-07 21:27:33
开源项目
这个库是Game Analytics贡献的。该库实现了一个通用的用于处理集群中任务的调度器。任务的生成和处理是专为特定的应用。客户端传递一个需要被执行的回调函数作为入参,调度器会通过消息返回任务的状态。 execute(SchedulerName, MFA = {Mod, Fun, Args})
|
|
v
.--->[ Pending ]---.
| |
node down spawn worker
| |
`---[ Running ]<---'-----------.
| | |
| exception retry
| | |
| `--->[ Failed ]---'
success | |
| max retries MFA called
| exceeded throw(gascheduler_permanent_failure)
| | |
| v |
| {error, max_retries} |
| v
| {error, permanent_failure}
v
{ok, Result = apply(Mod, Fun, Args)}
标签:Gascheduler
【文件预览】:
gascheduler-master
----.gitignore(124B)
----README.md(4KB)
----test()
--------gascheduler_test.erl(16KB)
----LICENSE(1KB)
----src()
--------gascheduler.app.src(193B)
--------gascheduler.erl(17KB)
----rebar(149KB)
----rebar.config(474B)
----.travis.yml(149B)
----Makefile(3KB)