| 355 | } |
| 356 | |
| 357 | size_t StarServerBase::ParseServers( |
| 358 | const WorkerCacheFactoryOptions& options) { |
| 359 | size_t hosts_count = 0; |
| 360 | for (const auto& job : options.cluster_def->job()) { |
| 361 | hosts_count += job.tasks().size(); |
| 362 | } |
| 363 | return hosts_count; |
| 364 | } |
| 365 | |
| 366 | Status StarServerBase::Start() { |
| 367 | mutex_lock l(mu_); |