Added more logging, increased timeout for container

This commit is contained in:
Kasra Bigdeli
2019-01-15 17:56:38 -08:00
parent 4b1534c54f
commit 5e4802ecff
+7 -5
View File
@@ -792,11 +792,11 @@ class DockerApi {
)
}
if (retryCount < 3) {
if (retryCount < 4) {
return new Promise<void>(function(resolve) {
setTimeout(function() {
resolve()
}, 3000)
}, 4000)
}).then(function() {
Logger.d(
'Retrying to get containerId for ' +
@@ -1385,12 +1385,14 @@ class DockerApi {
updatedData.TaskTemplate.ContainerSpec.Labels || {}
updatedData.TaskTemplate.ContainerSpec.Labels.randomLabelForceUpdate = uuid()
// if (authObject) TODO
// print updatedData.authconfig
{
if (authObject) {
updatedData.authconfig = authObject
}
Logger.d('Updating: ' + serviceName)
// TODO REMOVE
Logger.d(JSON.stringify(updatedData.authconfig))
instanceCount = Number(instanceCount)
if (