Code

Discussion on Web Cronjobs

Discussion on Web Cronjobs

Cart 398 sales
Recently Updated

forza020 supports this item

Supported

This author's response time can be up to 1 business day.

166 comments found.

hi mate

before buy queries 1) will it work on shared server?

2) my server cronjobs time limit is 15 mins, will it run on same server for every 5mins.

3) i checked demo, your cron are executed well but have not set any HTTP authorization user-id or password.

4) can i run cron by url like https://domain.com/cron/pushmail?????

Hi,

1. Firstly, make sure you are meet minimu mrequirements: http://docs.php5developer.com/webcron/#requirements

2. No, if you have 15 min limit, then it is not possible to run cron job handler every 5 minutes.

3. You can set HTTP Basic Authorization.

4. Yes, you can: http://docs.php5developer.com/webcron/#customization_cron See HTTP Cron jobs handler paragraph

Is there any option to Re-Run the cron job if fails for the day ??

Unfortunately there is no such option

I have set up everything according to manual including permissions. open_short_tags is on, but dashboard says internal server error- What should I do?

Hi, Please send me ~root/protected/runtime/app.log at roman.codecanyon(A)gmail(dot)com

Hi, can you update to php7.3+ ? Without mcrypt?

I’ll try to do it this month

Hello,

on dashboard I get an error:

Error An internal server error occurred. The above error occurred while the Web server was processing your request.

Could you please help?

I have also different errors on some pages. Please check the yellow market area on my screenshot:

https://my.cloud2trust.de/index.php/s/Qfww9852ni9EZby

sorry my issue, everythink is working fine after activating short_open_tag

Sorry for late response :) Yes. you are absolutely right!

Hello, how can i stop the log, i see i got 11 gb log file…

Hi. Go to admin page -> Clear logs -> All.

Hi, are there any settings which enable to send an email to admin on successful cron execution?

No, but you can do it in this way. When you create a command go to “Criterion” tab and set “consider failed if…” radio button and set criterion when the response is succeed. In this case all your succeed jobs will be marked as failed adn you will be receiving email notifications.

ok, so what does the SMTP email settings shown in documentation refers to ? Is it something else?

It’s a connection credentials to your email server.

Hi, is it possible to fetch cron url from a mysql db (without editing code)?! Thanks

Nope. All cron jobs are created via graphical user interface.

I want to purchase this for my AWS ec2 linux instance, will it work?

Hi. If you want to run linux commands, then you need to install this script on the server where you want to run these commands. In your case it’s AWS ec2.

hello , i would like to know if i can run a task for eg. ever 5 mins between 1-5 every day

Hi. What do you mean by “between 1-5 every day”? Can you provide an example?

Very good tool, I like and use it a lot.

I recommend that you change the col ‘expression’ to VARCHAR 100 or higher though, as your expression might get truncated due to the 30 charcater limitation and/or it throws an error when trying to save the cronjob: Database Exception (#22001)

Hi. Thanks sure. Will be changed in next update!

Some more recommendations and findings: - the sidemenu uncollapses on every page load - action-icons are pushed out of view when an url contains no ‘breakable’ characters, so you have to use the horizontal scrollbar to reach them, but the horizontal scrollbar is in an unfavourable position when managing multipe cronjobs (I have 9 and its already a little anoying to work with) as you have to scroll all the way down first. An adaptive wrapper for the table that keeps both scrollbars visible at all times would be very beneficial. Or force break words in col ‘URL or Shell Command’ and ‘Expression’

Agreed.

Hello

Does it allow cron to run right after it is created?

For example cron is made in 2019-04-29 21:18:23 and I choose cron to run every 30 minutes, then cron will run on: 2019-04-29 21:48:23 2019-04-29 22:18:23 2019-04-29 22:48:23 etc

And not on: 2019-04-29 21:30:00 2019-04-29 22:00:00 2019-04-29 22:30:00

I run thousands of cron and if everything goes for example in 2019-04-29 22:00:00, then this will be very burdensome on my website / server because everything goes together.

Thank you

Hi. This week I’ll add support of “Start date”. So you will be able to specify start date of cron.

Wait, “start day” doesn’t solve your issue. There is a solution. You can set cron expression to “0,30 * * * *” for 1st job. I.e. run script every hour at 0 minute and 30th minute. For second script you can specify “1,31 * * * *” expression. I.e. run second script at 1st minute and at 31th minute. In this way you can distribute server load.

Apparently my web host blocked the IP for running these crons, how can that even be? They didn’t block their own IP. Is this running through an external gateway of some sort? Did anyone else have a similar issue?

Can you explain your problem in more details? Are you trying to run HTTP command or run as a process? These script doesn’t use any 3rd parties to run commands.

Running an HTTP command. Everything was fine for a while, but recently everything jammed up and I got a notification from the program saying that it’s getting a 403 response saying IP is blocked, I just don’t know which IP that would be. :)

The IP of your web server. Sorry but I can’t help you. You need to contact admin of external server and ask to unblock your IP.

Can i use prestashop modules with it?

Can you explain in more details how you want to use it with presta?

Error #32 – what is this all about? https://www.screencast.com/t/RLTEAJVeuz4 – everything was working and now its not – I’ve ran the requirement.php file and it all passed

Hello,

Please send me FTP credentials on email. Also include please link to online version and admin login / password.

Regards, Roman

it would be nice if would have reset password link…

Hi. Link to reset a password is potential vulnerability. Running a sql query is most safest way.

This product is first class !!! it make my work so east! thank you…

You are welcome :)

Keen to buy but any demo?

I’d like to ensure that this script will do what I need it to.

I have multiple pages, that when visited, they create a cached page. They cache the info text, and the 3rd party images are cached to my server. The page just needs to be visited continuously by a cronjob, so as to not put an actual visitor threw the long process of generating this cache.

Can you confirm to me, that this is something that your script will have no problem doing?

I’ve ran the requirement.php file and it all passed.

On the requirement script I noted this line:

“This is not a SYSTEM cron job, you usually find in cPanel (Plesk), or in linux servers where you set a time and a function to run and the server will automatically run the PHP script.”

Can you clarify what is meant by that? Does it mean I can’t use any “root level” commands in your script? For example, I have a folder that needs emptied once a month or possibly every 2 weeks. Right now to perform this action, I use this line:

00 09 * * 7 [ $(date +\ d) -le 07 ] &x%x rm -rf /home/domain/public_html/cache/images/* >/dev/null 2>&1

So this line is using the “rm -rf” command and switches. Will I still be able to perform this in your script, or would I have to create a php script that does it, and have your script run my php script?

Thanks for any clarification you can give me. Just trying to make sure your script will do what I need it to do, and where the line is, of crons I’ll have to keep in my cpanel crontab.

Hello,

1.
The page just needs to be visited continuously by a cronjob, so as to not put an actual visitor threw the long process of generating this cache.
Yes.

2.
Can you clarify what is meant by that?
It means that you must have to set up a master cron job script that will be executing all tasks that were created via web interface. Something like:
* * * * * /usr/bin/php /path/to/web/root/protected/yii exec >/dev/null 2>&1 

3.

00 09 * * 7 [ $(date +\ d) -le 07 ] &x%x rm -rf /home/domain/public_html/cache/images/* >/dev/null 2>&1

You also can run this command. The only thing you need to make sure is that root/protected/yii file has permission to remove files inside this dir.

Regards,
Roman

Hello I’ve noticed new updated version where you included rules for considering the cron job execution successful or failed. Haven’t found though any instructions on how to use those options. For example I have a json response in my cron job and if something goes wrong cron job sends {status“}

What should I enter in ‘criterion’ tab in order to get email notifications once I get status:error from cron job?

Thank you

You need to put regular expression. Can you provide me an example of JSON if job is failed/succeeded? Please append your example in pre tag i.e
<pre>JSON response</pre>
{"status":"success","message":"Found: 2592"}
or
{"status":"error","message":"Found no products"}

Thank you

Then you need to choose “consider failed if the HTTP message body matches regular expression” and put “error” in main input and “i” in “Modifier” field.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey