bjustin-ibm commented on a change in pull request #202: Produce action fixes URL: https://github.com/apache/incubator-openwhisk-package-kafka/pull/202#discussion_r131718349
########## File path: action/messageHubProduce.py ########## @@ -196,7 +205,16 @@ def getProducer(validatedParams): logging.info("Reusing existing producer") return globals()["cached_producers"][connectionHash] - def getConnectionHash(params): apiKey = "{}:{}".format(params['user'], params['password']) return apiKey + +# return the remaining time (in seconds) until the action will expire, +# optionally reserving some time (also in seconds). +def getRemainingTime(reservedTime=0): + deadlineSeconds = int(os.getenv('__OW_DEADLINE', 60000)) / 1000 Review comment: Yes, it is epoch milliseconds. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services