Skip to content

Add timestamp to task output #551

Closed as duplicate
Closed as duplicate

Description

@ivotron

Add an option that instructs Task to print a timestamp when a task is started. Something like:

[2020-04-08 10:53:53] task: [my-task] ...

Not sure if this option would be enabled with a flag or YAML item. The format of the timestamp could also be customized.

This was briefly mentioned in #398 (comment)

Activity

  1. ivotron commented on Aug 12, 2021

    @ivotron
    Author

    the other alternative that occurs to me is to add a "report" at the end of the execution that shows a breakdown of how long each task took to run. I think that'd actually be more desirable in my case. The scenario we're having is that we run several tasks in parallel and it's hard to know how long each one is taking due to interleaved output and lack of proper timestamps from the software being invoked

  2. RobinPlatt commented on Sep 1, 2025

    @RobinPlatt

    Big +1 for either of these feature ideas (timestamp or report of execution time).

    Timestamp seems like the easier of the two as a starting point.

    Any particular hold up on these or is it just looking for a community contributor to do it and put in a PR?

  3. trulede commented on Sep 5, 2025

    @trulede
    Contributor

    I might implement something using slog (#2384) which would cover this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions