3 ms·
I wish that Azure Functions had this. I have a function triggered by Cron once a day that goes wrong about once a month. I trigger it again using the debugging
by AndrewDucker 5y ago
I wish that Azure Functions had this.
I have a function triggered by Cron once a day that goes wrong about once a month. I trigger it again using the debugging tools, but it would be nice if I could just hit a URL to trigger it again.
- vlucas 5y agoI use EasyCron (https://www.easycron.com https://www.easycron.com) for some simple scheduled tasks. Basically just hit a URL on a set schedule. I include a specific API key in there and the URL is not discoverable, so it works well for me. It's a nice way to do cron/scheduled tasks without any extra work. Just deploy another serverless endpoint and have something else hit that on a schedule. If anything goes wrong, EasyCron notifies me and I just hit the URL directly to re-run the task. Simple and crude, but highly effective and near zero effort.
- Jochim 5y agoUnless I'm misunderstanding your use case, Azure functions have had HTTP triggers[0] for years, the bindings documentation even calls out support for binding different trigger types to the same function. I was actually surprised that AWS has only just received support. [0] https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=in-process%2Cfunctionsv2&pivots=programming-language-csharp https://docs.microsoft.com/en-us/azure/azure-functions/funct...
- AndrewDucker 5y agoI don't believe you can have multiple triggers for the same function, so I can't bind it to a time trigger and a http trigger. If you can find an example for doing otherwise I'd be delighted!
- Jochim 5y agoI dug a little further and it looks like you're correct, I had mixed up the concepts of triggers and input bindings after reading the documentation that claims: > You can mix and match different bindings to suit your needs. Bindings are optional and a function might have one or multiple input and/or output bindings.[0] However, there is some documentation explaining how to execute a function that does not have a HTTP trigger via HTTP[1]. The example uses the function app's master key though, it'd be interesting to see if that's a requirement or if you could use a key scoped only for invocation of the specific function. [0]https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings?tabs=csharp https://docs.microsoft.com/en-us/azure/azure-functions/funct... [1]https://docs.microsoft.com/en-us/azure/azure-functions/functions-manually-run-non-http https://docs.microsoft.com/en-us/azure/azure-functions/funct...
- AndrewDucker 5y agoThank you!