Re: Management command scheduling options

2023-10-25 Thread Mike Dewhirst
On 25/10/2023 11:49 pm, Adam Stein wrote: On Wed, 2023-10-25 at 08:24 -0400, Larry Martell wrote: On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst wrote: Ahmedrufai I looked at APScheduler and like Celery it is too much of a sledgehammer for my tiny problem. I ended up using cron to launch t

Re: Management command scheduling options

2023-10-25 Thread Mike Dewhirst
On 25/10/2023 11:24 pm, Larry Martell wrote: On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst wrote: Ahmedrufai I looked at APScheduler and like Celery it is too much of a sledgehammer for my tiny problem. I ended up using cron to launch the command each day. It works perfectly. My task now is

Re: Management command scheduling options

2023-10-25 Thread Adam Stein
On Wed, 2023-10-25 at 08:24 -0400, Larry Martell wrote: > On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst > wrote: > > > > Ahmedrufai > > > > I looked at APScheduler and like Celery it is too much of a > > sledgehammer for my tiny problem. > > > > I ended up using cron to launch the command each

Re: Management command scheduling options

2023-10-25 Thread Larry Martell
On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst wrote: > > Ahmedrufai > > I looked at APScheduler and like Celery it is too much of a sledgehammer for > my tiny problem. > > I ended up using cron to launch the command each day. It works perfectly. > > My task now is to find a way to automate establ

Re: Management command scheduling options

2023-10-25 Thread Mike Dewhirst
server.CheersMike--(Unsigned mail from my phone) Original message From: Ahmedrufai Otuoze Date: 24/10/23 00:11 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Management command scheduling options Hi Mike,I've implemented something similar to what you ment

Re: Management command scheduling options

2023-10-23 Thread Mike Dewhirst
On 23/10/2023 11:48 pm, Rodrigo Bistolfi wrote: Use devops for setting up cron jobs as part of the deployment process. My requirement is very lightweight and cron would definitely work for me. Both Celery and APScheduler seem like overkill. How would you ensure the cron job was established o

Re: Management command scheduling options

2023-10-23 Thread Ahmedrufai Otuoze
Hi Mike, I've implemented something similar to what you mentioned lately. I used this Python package called APScheduler to schedule and run database intensive queries behind the scene and then cache the result for my users to fetch from making their experience super fast. The APScheduler can be c

Re: Management command scheduling options

2023-10-23 Thread Rodrigo Bistolfi
Use devops for setting up cron jobs as part of the deployment process. You could also use something like https://apscheduler.readthedocs.io/en/3.x/ if you wanna something OS independent. El lun, 23 oct 2023 a las 7:08, Mike Dewhirst () escribió: > Django docs suggest cron or Windows scheduler for

Re: Management command scheduling options

2023-10-23 Thread Alessandro Madruga Correia
Django-celery Em seg., 23 de out. de 2023 às 07:08, Mike Dewhirst escreveu: > Django docs suggest cron or Windows scheduler for running management > commands. > > I would like instead to build an internal Django based scheduler - because > after migrating to a new server, setting up the new cro

Management command scheduling options

2023-10-23 Thread Mike Dewhirst
Django docs suggest cron or Windows scheduler for running management commands. I would like instead to build an internal Django based scheduler - because after migrating to a new server, setting up the new cron task will be forgotten. Is there a daily (approximately) event in a Django projec