Skip to content

The datetime directives used to format elapsed time are incorrect #10

Description

@jakeb1996

When the elapsed time for a batch and the total elapsed time is reported, the expression %d %H:%M:%S is used. Even when the pipeline takes less than one day to run, the elapsed time will be reported with %d being one (i.e., taking at least 24 hours), as %d reports day of month (there is no 0'th day of a month). See here.

The code used to report elapsed time needs to be changed so that days/hours/minutes/seconds are reported accurately.

time.strftime('%d %H:%M:%S', time.gmtime((time.time() - startTime))),

time.strftime('%d %H:%M:%S', time.gmtime((time.time() - batchStartTime))),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions