Commit 822b75a
committed
fix(cli): include initial connection time in command duration
Fixes bounty issue #1521
The `cortex run` command was starting the timer after the initial connection
and submission were completed, which resulted in underreported duration for
commands, especially when connection setup was slow.
This change moves the timer start to before the submission is sent, ensuring
that the reported duration includes the full end-to-end time.1 parent 8f839ec commit 822b75a
File tree
2 files changed
+11
-11
lines changed- cortex-cli/src
- cortex-engine/src/tasks
2 files changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
513 | 523 | | |
514 | 524 | | |
515 | 525 | | |
| |||
523 | 533 | | |
524 | 534 | | |
525 | 535 | | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
| |||
0 commit comments