-
Notifications
You must be signed in to change notification settings - Fork 11
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
Adding run_started_at to query comment #27
Adding run_started_at to query comment #27
Conversation
macros/query_comment.sql
Outdated
@@ -23,6 +23,7 @@ | |||
node_resource_type=node.resource_type, | |||
node_meta=node.config.meta, | |||
node_tags=node.tags, | |||
run_started_at=run_started_at.strftime("%Y-%m-%d %H:%M:%S"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we go with https://docs.python.org/3/library/datetime.html#datetime.datetime.isoformat and include a timezone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @NiallRees!! I've just updated and tested:
Thanks for contributing this @bisset-a 🙌 |
No problems @NiallRees , thanks for providing the macros 😄 they'll be very useful for us! |
@@ -23,6 +23,7 @@ | |||
node_resource_type=node.resource_type, | |||
node_meta=node.config.meta, | |||
node_tags=node.tags, | |||
run_started_at=run_started_at.astimezone(modules.pytz.utc).isoformat(), | |||
full_refresh=flags.FULL_REFRESH, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this go up higher with the invocation_id
and other non-node specific details?
Adding
run_started_at
to the query comment