• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to run period task?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to run period task?


  • Subject: Re: Best way to run period task?
  • From: Tim Worman <email@hidden>
  • Date: Wed, 6 Jan 2010 17:59:35 -0800

Mark:

For simpler tasks I write direct actions then call that DA from curl. Then I set up a cron job to call a simple shell script that runs curl (or other). For security purposes, I check the requesting host in the DA. So, if the request doesn't come from "localhost" or "127.0.0.1" it doesn't run.

This solution obviously doesn't work well if you want to be able to set the schedule within the app.

Tim Worman
UCLA GSE&IS


On Jan 6, 2010, at 4:22 PM, Mark Woollard wrote:

> What's the recommended way to run a periodic task from within a WO application? In this case its infrequently (hourly) and independent of any web requests.
>
> Thanks
> Mark
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Best way to run period task? (From: Mark Woollard <email@hidden>)

  • Prev by Date: Re: Running validation manually
  • Next by Date: Re: Best way to run period task?
  • Previous by thread: Re: Best way to run period task?
  • Next by thread: Re: Best way to run period task?
  • Index(es):
    • Date
    • Thread