Re: Running a method periodically on a Seaside site

Esteban Maringolo <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <CAJMgPC+8fbfYzi6_CNBpcianawfpZ8ANa7R+pjgC8TnSM+yfFg@mail.gmail.com>
I did this to collect some data and report it daily (by mail, etc.)
and also every 5' to feed other services.

What I did was to use a cron task that ran Pharo that called a simple
script such as follows:

```
NonInteractiveTranscript stdout install.
ProviderDailyNotificator runForTheLastWeek.
Smalltalk quitPrimitive.
```

The output was sent to a log file as well.

All the logic of whether to retry notifications etc. was handled by
the `ProviderDailyNotificator` class.

Regards,

Esteban A. Maringolo

El lun., 18 mar. 2019 a las 12:28, sergio ruiz
(<[email protected]>) escribió:
>
> 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.