AdamEr8 / cibus-budget-utilizer

MIT License
2 stars 0 forks source link

[Triggers]: Enable adding a single-run timed trigger #27

Closed AdamEr8 closed 1 year ago

AdamEr8 commented 1 year ago

E.g for when Thursday is not a workday.

orgold commented 1 year ago

This is ALMOST supported out of the box for Azure functions. Once you add https://portal.azure.com to the CORS, you can manually trigger from the function's 'Code + Test' tab.

AdamEr8 commented 1 year ago

This is ALMOST supported out of the box for Azure functions. Once you add https://portal.azure.com to the CORS, you can manually trigger from the function's 'Code + Test' tab.

Yea @orgold, but it this has to be done when you need to use your credits, I want to be able to set this single-run trigger whenever I happen remember/realize I'll need one, and then forget about it

orgold commented 1 year ago

You refer to scheduling a one-time order in advance. It's pretty much supported. Copy the exiting function and change function.json to trigger on specific day and month. After it triggered, you have a year to delete it if you don't want it to reoccur. Seems like a fair ROI.

AdamEr8 commented 1 year ago

Yea, that'll work. especially given there doesn't seem to be a "native" solution