Define operations to be executed at every time interval from task start-up to finish. These operations are guaranteed to execute at least once after all other operations of the task are finished. Example: with ops.task_reporter(interval_m
(self, interval_ms=1000, name=None)
| 453 | return setup |
| 454 | |
| 455 | def task_reporter(self, interval_ms=1000, name=None): |
| 456 | """ |
| 457 | Define operations to be executed at every time interval from |
| 458 | task start-up to finish. These operations are guaranteed to |
| 459 | execute at least once after all other operations of the task are |
| 460 | finished. |
| 461 | |
| 462 | Example: |
| 463 | with ops.task_reporter(interval_ms=10000): |
| 464 | ops.LogInfo('10s elapsed') |
| 465 | """ |
| 466 | return _ReporterBuilder(interval_ms, net=self.net(), name=name) |
| 467 | |
| 468 | def local_reporter(self, interval_ms=1000, name=None): |
| 469 | """ |
nothing calls this directly
no test coverage detected