Re: Running a method periodically on a Seaside site

Sven Van Caekenberghe <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Just use a process like this (in your run.st file):

[ [
    1 minute wait.
    Bla sendOlderOutstanding.
] repeat ]
    forkAt: Processor lowIOPriority
    named: 'Periodic Sigfox sendOlderOutstanding'.

[ [
    5 minutes wait.
    Bla transferT3SigfoxDownlinks.
] repeat ]
    forkAt: Processor lowIOPriority
    named: 'Periodic Sigfox transferT3SigfoxDownlinks'.

You could also add an error handler to protect your process from dying when an error occurs in one iteration.

> On 18 Mar 2019, at 16:28, sergio ruiz <[email protected]> wrote:
> 
> I would like to run an “update all data” type method that grabs data from a few services, crunches it, and spits data to another service. I would like to run this twice a day.
> 
> What is the most Smalltalk/Pharo/Seaside approach to such a thing?
> 
> I thought about running it from the command line using a cron job, which I would totally like, but the job dies because it tries to run another copy of the same image with Seaside already running.
> 
> I thought about creating a REST endpoint, and calling it via wget using cron, but I got too bogged down in installing the Seaside REST packages, and running into errors everywhere.
> 
> Any suggestions?
> 
> Thanks!
> 
> ----
> peace,
> sergio
> photographer, journalist, visionary
> 
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.codeandmusic.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.