change write.task.log.to.dynamo to write.message.log.to.dynamo to match the function in helper.R