Stark9837,
@Stark9837@techhub.social avatar

Is the best way to run periodic functions, not necessary time-critical, just needs to happen in the correct hour or day,

I am running a bot in a container, but want weekly or daily things to happen. Adding this to the main loop seems inefficient, because checks will unnecessary be done.

Should I rather use a image, run the script in the container and then just have cronjobs running in the container, rather than using a Python image.

Storage, memory and processing isn't actually a problem, so using a larger and beefier image is possible.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • provamag3
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines