Overhauled entire project config, added notifications, email templates, optimized stripe subscriptions, redis caching, and webdriver utilities

This commit is contained in:
Keannu Christian Bernasol 2024-05-10 23:15:29 +08:00
parent 7cbe8fd720
commit 99dfcef67b
84 changed files with 4300 additions and 867 deletions

View file

@ -0,0 +1,16 @@
from celery import shared_task
from webdriver.utils import setup_webdriver, selenium_action_template
# Sample Celery Selenium function
# TODO: Modify this as needed
@shared_task(autoretry_for=(Exception,), retry_kwargs={'max_retries': 6, 'countdown': 5})
def sample_selenium_task():
driver = setup_webdriver()
selenium_action_template(driver)
# Place any other actions here after Selenium is done executing
# Once completed, always close the session
driver.close()
driver.quit()