1👍
✅
If your condition data is serializable, then you can use Celery to run python script. It’ll be as simple as:
# in your Django code that run on user submitting data
...
send_email.delay()
...
# Celery task
@shared_task(bind=True)
def send_email(list_of_your_condition_parameters):
# do job
Source:stackexchange.com