Wednesday, October 25, 2023

Re: Management command scheduling options

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

wsB5BAABCAAjFiEE/NCg7Xf1UydoVFgpGvW31BqCOLMFAmU5woAFAwAAAAAACgkQGvW31BqCOLN6
cQgAixdkq5k1MsxH5Mm5lfSnRZsVmKfqQBBAc+LtUWiBqOfqFlKLAJVSWwpVpobDQi4hMUyGZ75G
DlIzLcuLdOO1R3jzBNhmbln8uWTyHRyQD4GMJpTKFZDO9ySNVFVT9BzXz1OZI6MVrDizsZpE4d6q
wtWB5c++rGAVGStJJRBmzeCySP5gnYSS55RbeL6vBgr4lVh0RW6bdCIx7eEz7yMjSznei7G6/yxH
vREpGhwZ8m5rPdsA+441b2F93gpk0Zf6B8v0JFUv/mthhbk7B/xTS4ALqr78JWwfV375rncZTOJE
i69ba6DlEwhQ49uKYtxkK5v7J9vapWyJe1BdwUrHRQ==
=/gNC
-----END PGP SIGNATURE-----
On 25/10/2023 11:24 pm, Larry Martell wrote:
On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst <miked@dewhirst.com.au> 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 establishment of that crontab entry when the project is migrated to a new server.  
  How are new servers deployed? How many new servers will be deployed?  If it's a one off thing you are doing manually, you just have to  remember to do it.

It is a one-off but I'm assuming it will be someone else needing to do it rather than me.

 If there are many, then you should use a tool like  terraform or octopus, or something similar and have that do it.    


--   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