Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@caviri
Copy link
Member

@caviri caviri commented Jun 24, 2024

Added real timestamp for executions.

@caviri caviri requested a review from sabinem June 24, 2024 14:24
Copy link
Contributor

@sabinem sabinem left a comment

Choose a reason for hiding this comment

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

fix I think to be consistent we should add the timestamps also on the steps. They also have a start_timestamp and end_timestamp.

suggestion:
Additionally the steps have a timestamp field whereas the execution do not. I would add would add a timestamp field also on the execution and set it to the time when the execution was created.

suggestion

@caviri
Copy link
Member Author

caviri commented Jun 26, 2024

Hello @sabinem, the steps have an ending timestamp implemented. It's coming from the component itself. I'll expand this to start_timestamp which is weirdly missed.

I agreed on your suggestion to include a creation timestamp. Follow what we are using in other documents, we can add:

    "createdAt": datetime.utcnow(),
    "updatedAt": datetime.utcnow()

Would this works?

@sabinem
Copy link
Contributor

sabinem commented Jun 26, 2024

@caviri yes sounds good to me: watch out when renaming the timestamp field on where in the code it is used.

@caviri
Copy link
Member Author

caviri commented Jun 26, 2024

Hi @sabinem, here you have the PR adding the start_timestamp at the beginning of the step.

P.S. I still need to test this.

@caviri caviri requested a review from sabinem June 26, 2024 19:22
@caviri
Copy link
Member Author

caviri commented Jun 30, 2024

Hello @sabinem, I added the timestamps on the orchestrator. This is only valid when the steps are running ephemeral components.

Copy link
Contributor

@sabinem sabinem left a comment

Choose a reason for hiding this comment

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

@caviri Looks good to me: ready to merge

@caviri caviri merged commit 9876f6a into develop Jul 1, 2024
@caviri caviri deleted the start-ending-timestamp-executions branch July 1, 2024 07:23
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.

3 participants