From b5581c7e538d6df20088e4469bcf789caa8a3d38 Mon Sep 17 00:00:00 2001 From: Cyrus Anderson <132491121+cander67@users.noreply.github.com> Date: Sun, 18 Feb 2024 08:26:48 -0800 Subject: [PATCH] update function_app.py move azure identity and azure storage import statements to inside timer function --- function_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/function_app.py b/function_app.py index bdef0e0..ea8e6e0 100644 --- a/function_app.py +++ b/function_app.py @@ -1,5 +1,3 @@ -from azure.identity import DefaultAzureCredential -from azure.storage.blob import BlobServiceClient, ContainerClient, ContentSettings import azure.functions as func app = func.FunctionApp() @@ -16,6 +14,8 @@ def cron(skiForecastTimer: func.TimerRequest) -> None: import src.get_endpoints as get_endpoints import src.get_forecasts as get_forecasts import src.proc_forecasts as proc_forecasts + from azure.identity import DefaultAzureCredential + from azure.storage.blob import BlobServiceClient, ContainerClient, ContentSettings # Get current time now = datetime.now()