Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced Time Formatting for Short-duration Jobs #624

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

fer112233
Copy link
Contributor

Current Behavior:
For jobs that complete in under 5 seconds, the system currently displays the duration as "less than 5 seconds". This approach obscures the details for tasks that finish in mere milliseconds.

Proposed Change:
To provide more granular information about job execution times, this pull request introduces an enhanced time formatting mechanism:

Jobs that take less than 1 second will display their duration in milliseconds (e.g., "320 miliseconds").
Jobs that take between 1 to 5 seconds will display their duration with a precision of two decimal places (e.g., "3.25 seconds").

Rationale:
This change ensures that users have a clear understanding of the job durations, especially for those that complete rapidly. It will be particularly valuable for performance monitoring and optimization efforts, where millisecond-level precision can be crucial.

@felixmosh felixmosh merged commit ee6ede0 into felixmosh:master Sep 13, 2023
@felixmosh
Copy link
Owner

Thanx for this PR 🙏🏼
Released in v5.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants