Monday, October 23, 2023

Management command scheduling options

-----BEGIN PGP SIGNATURE-----

wsB5BAABCAAjFiEE/NCg7Xf1UydoVFgpGvW31BqCOLMFAmU2RgcFAwAAAAAACgkQGvW31BqCOLMJ
IwgArjFtf5exdxtmP36Z8tGg19+dZURUrLi5eYmwynZOJXOKKq8PnzPPtr5jTWHG6QEVIjVo+vwI
CM8KCosVN3L/tuRUS4Ix0CkkcHOnD+SdoH6Dly0FYWXSaFELdBwgLXDaqoH14cMFHbrUCoiK1nKd
SNAf5+d1wO+Rkct5M+TXzQfvU1fJcOB3C8R2Zt5xgBZgcaigFI4ABmrMSyh1J8TR2lrPZesUnyVI
yT/q6RAOjqHIPoEUJQteNNGDmdOeypLK+o1hIaReYCeiUwPfs+dNlU22NNNAMKFFoum83ssziEyQ
Qf3Qhf6PtylDWdZXd35931j5TtUxS6kMNx37kwgRqg==
=JV84
-----END PGP SIGNATURE-----
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 project I can hook into and test the date?

The task is somewhat database intensive and needs to run quarterly for some users, monthly for most and weekly for others depending on their preferences.

Ideas anyone?

Thanks

Mike

--   Signed email is an absolute defence against phishing. This email has  been signed with my private key. If you import my public key you can  automatically decrypt my signature and be sure it came from me. Your  email software can handle signing.  

No comments:

Post a Comment