MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / tick

Method tick

lightx2v/disagg/workload.py:239–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

237 stages = _load_stage_specs()
238
239 def tick(self):
240 elapsed_s = _elapsed_since_start()
241 total_duration_s = sum(stage.duration_s for stage in self.stages)
242 if total_duration_s > 0 and elapsed_s >= total_duration_s:
243 return None
244
245 stage = _current_stage(self.stages)
246 return stage.user_count, stage.spawn_rate
247
248
249class DisaggUser(User):

Callers 1

mainFunction · 0.95

Calls 2

_elapsed_since_startFunction · 0.85
_current_stageFunction · 0.85

Tested by

no test coverage detected