vmware-archive / dispatch

Dispatch is a framework for deploying and managing serverless style applications.
http://dispatchframework.io
Apache License 2.0
532 stars 58 forks source link

Use UnixNano for run's executed and finished time #777

Closed kars7e closed 5 years ago

kars7e commented 5 years ago

With dispatch solo the differences between times go below one second, making it harder to differentiate and order runs. It was also causing e2e tests to fail randomly.

This patch changes the time sent over the wire from Unix to UnixNano (from seconds since Jan 1 1970 to nanoseconds since Jan 1 1970). Note: This only changes the value exposed over the API, not the internally stored representation.

dispatch get runs
                   ID                  |      FUNCTION       | STATUS |            STARTED             |            FINISHED
-----------------------------------------------------------------------------------------------------------------------------------
  300d4303-b00d-4477-b595-6124376addcf | node-echo-back-6016 | READY  | 2018-11-29T00:03:31.470876867Z | 2018-11-29T00:03:31.474510739Z
  d2dc1c54-1ac1-4bc8-8987-ebc8b9779b64 | node-echo-back-6016 | READY  | 2018-11-29T00:03:31.110100254Z | 2018-11-29T00:03:31.162239329Z

Also fixed a typo in a release pipeline (already applied to concourse)