StoreHippo uses azure functions to execute background long-running jobs like Import and Export jobs and scheduled tasks like getting shipping status from providers.
Logger class that provides log and error functions.
The log function logs the message in the ms.function_logs entity in azure table storage.
The error function sends the message to Azure stackdriver.
|ms.sdk||StoreHippo SDK instance for the current store. In case of store-specific jobs, the temporary access key is automatically generated.|
|ms.functionExecution||The current function execution object|
|Every function should call ms.touch at regular intervals to update the function execution with the current status and to tell the controller that it is still alive. The touch function should be called synchronously and function should proceed once it returns.|
|Call this function to complete the function execution.|
Every function should be written in a way so that it can be restarted without having any adverse effects or data inconsistency. To keep the last state, the function must use ms.touch function to update the state at regular intervals. For example, if you are importing 10,000 products in a batch of 10 products at a time, you can update the state after every batch. That way, if the function is restarted, it will start from the last batch that was left.