Reputation: 11
I have a django project and i need the ability for executing a function at a specified time on django server. for example you can consider that in my django project if a client request for friendship to another person if after (say) 7 days that person doesn't answer that request the request will be automatically removed. so i want the ability of calling a function on django server at a specified time that is stored in mysql table.
Upvotes: 0
Views: 1317
Reputation: 5876
Create a custom command and create a cron job to run it, also you can check some django apps for manage cron jobs/repetitive tasks. I know you can use it on linux (in windows should be alternatives, I my head sounds now schedule task, but must there be other)
Upvotes: 3