Hello,
I have a script that checks product price on a website every 8 hours and sends notification email once there is promo price instead of a standard price. I want this script running 24/7 and once email is sent I want exit the script. Initially I just entered the file and I pushed the button ">>>Run this file", however I've noticed that console was working for around 2 days and then stopped. I found a feature called "Always-on tasks" which is great, but the problem is that I do not know how to stop the code execution after sending a notification email. The "Always-on tasks" just restarts the code and I do receive email after email which is not great.
Any piece of advice would be highly appreciated. PS. I am quite new in world of py.