This commit is contained in:
Pagwin 2025-02-05 14:30:34 -05:00
parent 37c4b8caaa
commit 17548fec12
No known key found for this signature in database
GPG key ID: 81137023740CA260
6 changed files with 44 additions and 0 deletions

View file

@ -3,3 +3,4 @@ bin
include include
lib lib
lib64 lib64
local.settings.json

View file

@ -0,0 +1,5 @@
{
"recommendations": [
"ms-azuretools.vscode-azurefunctions"
]
}

View file

@ -0,0 +1,2 @@
#!/bin/sh
func azure functionapp publish cron-map-scrape

View file

@ -0,0 +1,16 @@
import azure.functions as func
import datetime
import json
import logging
app = func.FunctionApp()
@app.timer_trigger(
schedule="* * * * * *", arg_name="myTimer", run_on_startup=False, use_monitor=False
)
def Timer(myTimer: func.TimerRequest) -> None:
if myTimer.past_due:
logging.info("The timer is past due!")
logging.info("Python timer trigger function executed.")

View file

@ -0,0 +1,15 @@
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
}

View file

@ -0,0 +1,5 @@
# Do not include azure-functions-worker in this file
# The Python Worker is managed by the Azure Functions platform
# Manually managing azure-functions-worker may cause unexpected issues
azure-functions