[web2py] Re: Having a function always running in the background

2020-09-09 Thread Dave S
On Tuesday, September 1, 2020 at 11:48:34 AM UTC-7, Jim S wrote: > > Ah, so this sounds a little different than what I thought you were after. > > Looks like you want to run a task at a regularly scheduled time, not based > on something that you've triggered in your application. > > Given that

Re: [web2py] Re: Having a function always running in the background

2020-09-03 Thread António Ramos
maybe this online cron can help. https://www.easycron.com/ Em qui., 3 de set. de 2020 às 02:31, Andy W escreveu: > If you are using PythonAnywhere, they have Scheduled Tasks and (for paid > accounts) an Aways-on Task. > These are very simple to use. I use them for managing the queue of >

[web2py] Re: Having a function always running in the background

2020-09-02 Thread Andy W
If you are using PythonAnywhere, they have Scheduled Tasks and (for paid accounts) an Aways-on Task. These are very simple to use. I use them for managing the queue of outgoing emails. Andy On Wednesday, September 2, 2020 at 5:09:15 PM UTC+10 mostwanted wrote: > You are on point Jim, you get

[web2py] Re: Having a function always running in the background

2020-09-02 Thread mostwanted
You are on point Jim, you get what i'm trying to achieve, let me see if i can put it together. Regards; On Tuesday, September 1, 2020 at 8:48:34 PM UTC+2 Jim S wrote: > Ah, so this sounds a little different than what I thought you were after. > > Looks like you want to run a task at a

[web2py] Re: Having a function always running in the background

2020-09-01 Thread Jim S
Ah, so this sounds a little different than what I thought you were after. Looks like you want to run a task at a regularly scheduled time, not based on something that you've triggered in your application. Given that information, I'd turn to the scheduler on my host system. Are you running

[web2py] Re: Having a function always running in the background

2020-09-01 Thread mostwanted
Hey Clemens, the reason i'm running away from the scheduler honestly is because i dont understand it but i've asked Jim to show me how, your solution sounds very neat, if i still dont get the scheduler after Jim i'm reaching out to you. Regards; On Tuesday, September 1, 2020 at 3:50:59 PM

[web2py] Re: Having a function always running in the background

2020-09-01 Thread mostwanted
Hey Jim, I'm failing to understand the scheduler, please if its not a bother simplify it for me. In my script below I wanna send users who host stuff on my site emails when their subscription is left with 7 days to expire. Ideally twice a week for these 7 days. I'm hosting my app with

[web2py] Re: Having a function always running in the background

2020-09-01 Thread Jim S
The web2py scheduler pretty much is a background task that runs unnoticed. I use it in a number of places to queue hundreds or thousands of outbound emails. I like the scheduler because it then also servers as a log of the emails that were sent. If that isn't what you're looking for then

[web2py] Re: Having a function always running in the background

2020-09-01 Thread Clemens
Hi, I've done this via LOAD and ajax in an target div to have a graph always be updated if the user changes the model to be visualized. If the user changes the model, I trigger an update by an jquery reload. The data is exchanged via session and of course via the database. If you have no