Don't use exponential notation for SQS message timestamps
This commit is contained in:
parent
0e3c4908b0
commit
e4f42d5880
2 changed files with 21 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ class Message(BaseModel):
|
|||
return escape(self._body)
|
||||
|
||||
def mark_sent(self, delay_seconds=None):
|
||||
self.sent_timestamp = unix_time_millis()
|
||||
self.sent_timestamp = int(unix_time_millis())
|
||||
if delay_seconds:
|
||||
self.delay(delay_seconds=delay_seconds)
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ class Message(BaseModel):
|
|||
visibility_timeout = 0
|
||||
|
||||
if not self.approximate_first_receive_timestamp:
|
||||
self.approximate_first_receive_timestamp = unix_time_millis()
|
||||
self.approximate_first_receive_timestamp = int(unix_time_millis())
|
||||
|
||||
self.approximate_receive_count += 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue