Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Conversation

@ChintanRaval
Copy link
Collaborator

@ChintanRaval ChintanRaval commented Jul 29, 2019

  • Log all available details when logging execution and execution-model
  • Record execution-time as at least 1 second per model / execution in case of sub-second executions
  • Log DataSource to be used for execution

PR Build: https://ci.appveyor.com/project/PageUp/relational-data-loader-fkwak/builds/26327283

@ChintanRaval ChintanRaval self-assigned this Jul 29, 2019

execution_end_time = session.query(func.now()).scalar()
total_execution_seconds = (execution_end_time - current_execution.started_on).total_seconds()
total_execution_seconds = max((execution_end_time - current_execution.started_on).total_seconds(), 1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add up milliseconds?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. i don't understand.. do you mean round milliseconds?
anyway.. the field this is saved in is for seconds.. so i'm trying to record at least 1 second and avoid recording 0 seconds in cases of close-to-zero timelines.

@ChintanRaval ChintanRaval merged commit 13d6f02 into master Jul 30, 2019
@ChintanRaval ChintanRaval deleted the feature/SP-149-log-all-exec-and-model-details branch July 30, 2019 00:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants