aglinxinyuan commented on code in PR #9550:
URL: https://github.com/apache/texera/pull/9550#discussion_r4672912176
##########
amber/src/main/python/core/models/schema/attribute_type.py:
##########
@@ -124,7 +124,7 @@ def _local_wall_clock(moment):
# machine's standard offset. Before 1900 the engine reads every zone at
# its standard offset, where a named zone would give its local mean time.
zone = _named_local_zone()
- utc = moment.astimezone(datetime.timezone.utc).replace(tzinfo=None)
+ utc = moment.astimezone(datetime.UTC).replace(tzinfo=None)
Review Comment:
Done in 38bd50c909: it's back to `datetime.timezone.utc`; `@functools.cache`
stays since it's 3.9+. I also compiled every pyamber source under Python
3.10.19 and found no other 3.11-only syntax.
##########
amber/src/main/python/core/runnables/heartbeat.py:
##########
@@ -110,7 +110,6 @@ def stop(self):
os.kill(child.pid, signal.SIGKILL)
except Exception as e:
logger.warning(
- "Exception during process termination "
- f"PID {str(child.pid)}: {e} "
+ f"Exception during process termination PID
{child.pid!s}: {e} "
Review Comment:
Done in 38bd50c909: it's `{child.pid}` now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]