Skip to content

Commit

Permalink
Fix azure functions consumption initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Aug 8, 2023
1 parent f727fa4 commit 1585293
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public void transform(TypeTransformer transformer) {
public static class ExecuteAdvice {
@Advice.OnMethodExit(suppress = Throwable.class)
public static void methodExit() {

if (System.getenv("AzureWebJobsStorage") == null) {
// specialization hasn't occurred yet, and this is just a fake warmup request
return;
}

AzureFunctions.configureOnce();
}
}
Expand Down

0 comments on commit 1585293

Please sign in to comment.