Assistance with Redeployment Trigger after Python Function Execution

Question:
Hello. I’m currently working on a project hosted on Replit, utilizing a Reserved VM with cycles. I have a specific inquiry regarding the Deployment action and would greatly appreciate some guidance.

My scenario involves the implementation of a webhook that receives data from a form, subsequently triggering a Python function responsible for file creation.

While I have successfully implemented the initial setup, I’m now faced with the challenge of triggering a “Redeploy” after the Python function execution, so that production app reads the new files created. Or maybe I can fix it using the DataBase?

Could someone please provide insights or examples on how to effectively achieve this? Your assistance is highly valued.

Thank you in advance.
Repl link:
N A

code snippet