• Hi everyone! I need to write a script that will run periodically automatically, although each time the script runs it’ll take a while to complete. It will be downloading a huge public zip file, open, and parse that file for information to update our records. My question is, what would be a generally good strategy to doing this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It might be best to run that directly from a real cron and not make it part of the internal cron tasks.

    Thread Starter adiakritos

    (@adiakritos)

    I’ve been reading about delegating the task to an existing daemon in order to avoid having the process put everything else on hold or timeout. Does this makes sense? I don’t know exactly what a daemon is or how these processes work (I’m researching this currently), but I’ve been told that running the script directly from a cron task will halt everything else. I’ll test locally to confirm this..

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    no, it won’t halt everything, though if it’s CPU or network intensive, it may slow your site while it’s running.

    Thread Starter adiakritos

    (@adiakritos)

    I’ll try this out. thanks for replying!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Running cron tab scripts’ is closed to new replies.