Discussion:
timelimit and lockfile for a job
Shai Ben-Naphtali
2014-06-17 06:40:29 UTC
Permalink
Hi,

Is there a way to:

1. Make sure that each job runs once and won't run again if the previous
occurrence of this same job didn't complete?
2. Set a timelimit for a job, so that if it didn't complete after that
time, fcron will kill that job (and exit with an error)?


---
Shai
Shai Ben-Naphtali
2014-08-20 12:57:15 UTC
Permalink
Anyone? :)
Post by Shai Ben-Naphtali
Hi,
Make sure that each job runs once and won't run again if the previous
occurrence of this same job didn't complete?
Post by Shai Ben-Naphtali
Set a timelimit for a job, so that if it didn't complete after that time,
fcron will kill that job (and exit with an error)?
Post by Shai Ben-Naphtali
---Shai
Thibault Godouet
2014-08-27 19:10:54 UTC
Permalink
Hi,

See inline below...

Thibault.
Post by Shai Ben-Naphtali
Hi,
1. Make sure that each job runs once and won't run again if the
previous occurrence of this same job didn't complete?
Set the 'exesev' option to false, e.g.:
@exesev(false) 10 command
Post by Shai Ben-Naphtali
2. Set a timelimit for a job, so that if it didn't complete after that
time, fcron will kill that job (and exit with an error)?
No such option at the moment.
Post by Shai Ben-Naphtali
---
Shai
Shai Ben-Naphtali
2014-08-28 08:26:03 UTC
Permalink
Thanks! About exesev, false means it won't allow them to run
simultaneously? Is that the default behaviour?


---
Shai
Post by Thibault Godouet
Hi,
See inline below...
Thibault.
Post by Shai Ben-Naphtali
Hi,
1. Make sure that each job runs once and won't run again if the
previous occurrence of this same job didn't complete?
@exesev(false) 10 command
2. Set a timelimit for a job, so that if it didn't complete after that
Post by Shai Ben-Naphtali
time, fcron will kill that job (and exit with an error)?
No such option at the moment.
Post by Shai Ben-Naphtali
---
Shai
------------------------------------------------------------
-------------------
- Fcron user support mailing list - http://fcron.free.fr
*******
Liste de diffusion fcronsupport
?subject=unsubscribe
Thibault Godouet
2014-08-28 21:22:33 UTC
Permalink
Hi Shai,

See the documentation: http://fcron.free.fr/doc/en/fcrontab.5.html

exesev

boolean(false)

Can a job be executed several times simultaneously ?

As you can see the default value is false.

Thibault.
Post by Shai Ben-Naphtali
Thanks! About exesev, false means it won't allow them to run
simultaneously? Is that the default behaviour?
---
Shai
Hi,
See inline below...
Thibault.
Hi,
1. Make sure that each job runs once and won't run again if the
previous occurrence of this same job didn't complete?
@exesev(false) 10 command
2. Set a timelimit for a job, so that if it didn't complete after that
time, fcron will kill that job (and exit with an error)?
No such option at the moment.
---
Shai
------------------------------__------------------------------__-------------------
- Fcron user support mailing list - http://fcron.free.fr
*******
Liste de diffusion fcronsupport
Shai Ben-Naphtali
2014-09-22 09:29:23 UTC
Permalink
Hello,

I ran a job with a long sleep:

Sep 22 03:15:00 fcron-staging fcron[11048]: Job sleep
$(/util/scripts/genRandomNumber.sh 0 10800) started for user root (pid
11049)
Sep 22 05:20:56 fcron-staging fcron[11048]: Job sleep
$(/util/scripts/genRandomNumber.sh 0 10800) terminated (exit status: 1)
(mailing output)
So I wonder, is there maybe a forced timelimit that the user has to watch
out for?
Hi,
See inline below...
Thibault.
Post by Shai Ben-Naphtali
Hi,
1. Make sure that each job runs once and won't run again if the
previous occurrence of this same job didn't complete?
@exesev(false) 10 command
2. Set a timelimit for a job, so that if it didn't complete after that
Post by Shai Ben-Naphtali
time, fcron will kill that job (and exit with an error)?
No such option at the moment.
Post by Shai Ben-Naphtali
---
Shai
------------------------------------------------------------
-------------------
- Fcron user support mailing list - http://fcron.free.fr
*******
Liste de diffusion fcronsupport
?subject=unsubscribe
Shai Ben-Naphtali
2014-09-22 10:28:14 UTC
Permalink
You know... this maybe unrelated to fcron ... so ignore.
Post by Shai Ben-Naphtali
Hello,
Sep 22 03:15:00 fcron-staging fcron[11048]: Job sleep
$(/util/scripts/genRandomNumber.sh 0 10800) started for user root (pid
11049)
Sep 22 05:20:56 fcron-staging fcron[11048]: Job sleep
$(/util/scripts/genRandomNumber.sh 0 10800) terminated (exit status: 1)
(mailing output)
So I wonder, is there maybe a forced timelimit that the user has to watch
out for?
Hi,
See inline below...
Thibault.
Post by Shai Ben-Naphtali
Hi,
1. Make sure that each job runs once and won't run again if the
previous occurrence of this same job didn't complete?
@exesev(false) 10 command
2. Set a timelimit for a job, so that if it didn't complete after that
Post by Shai Ben-Naphtali
time, fcron will kill that job (and exit with an error)?
No such option at the moment.
Post by Shai Ben-Naphtali
---
Shai
------------------------------------------------------------
-------------------
- Fcron user support mailing list - http://fcron.free.fr
*******
Liste de diffusion fcronsupport
?subject=unsubscribe
Loading...