Community discussions

MikroTik App
 
lavv17
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Sat Sep 01, 2007 9:01 am

feature request: a new scheduler attribute

Wed Feb 18, 2009 10:39 am

Hello!

I had a problem with a script that is run by scheduler each minute. The script sometimes cannot finish its work in that minute because of high cpu load and thus the scheduler runs the script again in parallel, the load increases even more and the script again cannot finish in a minute, the load grows more and more...

So here is a feature request: add a new scheduler attribute either to:
1. count interval from the time the script finished last time
2. skip running the script if previous invocation has not finished yet.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7193
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: feature request: a new scheduler attribute

Wed Feb 18, 2009 10:47 am

1. You can use global variable to store time
2. /system script job find. If script is in this list then it is not finished
 
lavv17
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Sat Sep 01, 2007 9:01 am

Re: feature request: a new scheduler attribute

Wed Feb 18, 2009 12:19 pm

Thank you!
I used the second approach.

Another question: is it possible to run a script once a new pppoe user connects? Preferrably with an argument of interface name.

Who is online

Users browsing this forum: No registered users and 11 guests