amino / amino-drone

Drone daemon to receive deployments from amino-deploy
2 stars 0 forks source link

Inaccurate respawn info #3

Closed danmactough closed 10 years ago

danmactough commented 10 years ago

We know this process was respawning (for unknown reasons) over and over, but the current report says that it has only respawned once "a few seconds ago".

danmactough commented 10 years ago

image

danmactough commented 10 years ago

Okay, the problem is that amino-drone and amino-deploy are not on the same page about what the lastRespawn value will be.

amino-drone returns a Date, which gets stringified as something like 2013-11-21T16:21:32.514Z. But amino-deploy expects that value to be a duration -- it calls moment.humanizeDuration(1 - val, true) -- and moment can't parse that as expected.

danmactough commented 10 years ago

amino-deploy expects that value to be a duration -- it calls moment.humanizeDuration(1 - val, true)

Whoops, misread it. It's actually moment.humanizeDuration(-1 * val, true). Same effect.