Re: What's the Longest you can DELAY PROCESS?
> Le 16 oct. 2017 à 19:24, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > have a "cron" utility > a process that has a list (records, array, whatever) of all processes > that are deamons > have it wake the deamon as appropriate using Call process. When the delay is important, I start a new process that dies after the job is done. I don't like a quite always sleeping but always here process. A cron can do that too. if (jobTime($i)) create process (...) end if -- Arnaud de Montard ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: What's the Longest you can DELAY PROCESS?
have a "cron" utility a process that has a list (records, array, whatever) of all processes that are deamons have it wake the deamon as appropriate using Call process. All deamons use Pause Process, rather then delay to sleep. ex: Cron: Repeat Process count := number of processes to manage for($i;Process count) if (time_to_wake_process($i)) call process (Deamon_Process_IDs{$i} end if end for delay process current process, 1 minute, or whatever) until(Quit4D) On Mon, 16 Oct 2017 10:20:49 -0600, Dave Nasralla via 4D_Tech wrote: > Hey All, > > Ran into an odd issue. Like many of you have have a Cron Daemon to run > daily tasks. Usually I have it wake up at least once a day. > > In one newer system, there was a job that only had to run once a > month. I tried to delay the process for 30 days it is fails - like > does not delay AT ALL. > > eg: > C_LONGINT($Delay_vl) > $Delay_vl:=30*24*60*60*60 > //Days*Hours*Min*Sec*Ticks > > DELAY PROCESS(Current process;$Delay_vl) > ALERT("Hello World") > > This is true for v15.4, v16R2 (on mac). > The docs say it should be a real, but it fails whether a real or long > integer. > > Am I missing something? (It does work as expected for shorter times.) > > dave > > -- > David Nasralla > Clean Air Engineering > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: What's the Longest you can DELAY PROCESS?
Thanks Jim, It sounds like it almost has to be an integer value... If there is a limit, it would be nice for the docs to specify what the limit is. dave On Mon, Oct 16, 2017 at 10:28 AM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote: > Max delay used to be something like 32000 ticks. (We have an old //comment > from 2006 that thinks so anyway) > > On Mon, Oct 16, 2017 at 12:20 PM, Dave Nasralla via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Hey All, >> >> Ran into an odd issue. Like many of you have have a Cron Daemon to run >> daily tasks. Usually I have it wake up at least once a day. >> >> In one newer system, there was a job that only had to run once a >> month. I tried to delay the process for 30 days it is fails - like >> does not delay AT ALL. >> >> eg: >> C_LONGINT($Delay_vl) >> $Delay_vl:=30*24*60*60*60 >> //Days*Hours*Min*Sec*Ticks >> >> DELAY PROCESS(Current process;$Delay_vl) >> ALERT("Hello World") >> >> This is true for v15.4, v16R2 (on mac). >> The docs say it should be a real, but it fails whether a real or long >> integer. >> >> Am I missing something? (It does work as expected for shorter times.) >> >> dave >> >> -- >> David Nasralla >> Clean Air Engineering >> ** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: http://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ** > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** -- David Nasralla Clean Air Engineering ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: What's the Longest you can DELAY PROCESS?
Max delay used to be something like 32000 ticks. (We have an old //comment from 2006 that thinks so anyway) On Mon, Oct 16, 2017 at 12:20 PM, Dave Nasralla via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hey All, > > Ran into an odd issue. Like many of you have have a Cron Daemon to run > daily tasks. Usually I have it wake up at least once a day. > > In one newer system, there was a job that only had to run once a > month. I tried to delay the process for 30 days it is fails - like > does not delay AT ALL. > > eg: > C_LONGINT($Delay_vl) > $Delay_vl:=30*24*60*60*60 > //Days*Hours*Min*Sec*Ticks > > DELAY PROCESS(Current process;$Delay_vl) > ALERT("Hello World") > > This is true for v15.4, v16R2 (on mac). > The docs say it should be a real, but it fails whether a real or long > integer. > > Am I missing something? (It does work as expected for shorter times.) > > dave > > -- > David Nasralla > Clean Air Engineering > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **