If celery is too much, consider django-background-tasks.
To be totally honest, I am an old dog, and I generally do the following:
* Write a management command.
* Deploy a crontab to run my management command.
This is not so container or cloud friendly, but none of my cloud
deployments run "long"
Ryan's suggestion is a very good one.
If you don't need Django-specific commands, you can even write a
stand-alone Python script which accesses your database to do the work. An
alternative to cron that we use, on occasion, is
https://pypi.org/project/APScheduler/ which runs in a container (a P
On Mon, Oct 19, 2020 at 04:53:35PM +0300, MUGOYA DIHFAHSIH wrote:
> Hello fellow django developers, i am working on a web app in which reports
> are archived in the database at the end of every month automatically, i
> have searched on internet and many folks are suggesting celery which i have
> tr
Not exactly automatic, but can be set up to do so, something along the lines:
https://wiki.postgresql.org/wiki/Month_based_partitioning
This solution is Postgresql specific, although I've done effectively the same
with mysql with some help in the code.
Partitioning the db in this way makes it (
Hello fellow django developers, i am working on a web app in which reports
are archived in the database at the end of every month automatically, i
have searched on internet and many folks are suggesting celery which i have
tried but not fruitful, is there any other library i use to accomplish this.
5 matches
Mail list logo