I'm a total newbie with Plesk, and I'm wondering how to set up a cron task for executing http address, which is updating profiles. I have my link of course, and I want to run this link every 15 minutes, 24 hours a day, non-stop.
I'd be very glad if you guys could help me with that.
Here's my cron task configuration for root:
What should I fill in minute, hour, day? And how about command?
Thanks for helping me,
Mike
It's not quite clear what do you mean under "executing http address"
But you can try this setting
Since Plesk 12.5 there are task options:
In Plesk 12 and below:
Related
I have a Node task that I run daily, it takes around 1 hour and I'd like to pay for just that hour, rather than having a server run 24/7.
Ideally, it would be something similar to lamda, although Lamda has a limit of 15 mins.
What services allow this?
I'd take a look at Heroku - a hobby dyno can cover your needs, you'd just need something to call your service to activate it for a short amount of time.
If you're up for containerizing your task, you could use a cron schedule on something like ECS: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html
Now my Python web app spends so much time data-crunching that PythonAnywhere assumes that the app has crashed and times out. (>5 mins = timeout)
My plan is (ultimately) to deliver the output to users by email, so they dont have to wait around anyway. ("Please check your email in 10 mins for your report").
I thought about doing a screen "refresh" periodically during the data-crunching to keep pythonanywhere happy - BUT if users close the browser then this isnt going to work.
How can I avoid a timeout and keep the app running for 10-15 mins without a browser?
Joe
PythonAnywhere dev here -- I think we've already discussed this over email, but I'll post what I said here just in case it's useful for other people.
A good option for stuff that takes a long time to run is to refactor it into a script that you can run periodically, and then schedule that on the "Tasks" tab. If you have a paid account, you can schedule up to 20 hourly tasks (we can bump that up if you need more), so to make the script run every (say) ten minutes, you could schedule it at 2 past the hour, 12 past the hour, and so on. If you need the script to process data that comes from the user via your website, you could make your view write something to the database with the details of what needs doing, then the scheduled task could pick that up, process it, and put the results in the DB for the website to pick up.
We've got a help page with a bit more information here.
My cron jobs were all running fine. I could view their logs in Google Cloud Platform. Then today they all started failing and I can't figure out the reason. Does anyone know why my cron jobs might be failing?
If this is happening to you, Check your quotas on the left tab bar. I had filled a daily quota so my requests stopped running.
I need to deploy few cron jobs for my nodejs app hosted on google cloud.
I have 2 options
cron-schedule npm package.
cron.yaml provided by app engine.
I am not sure which has better performance and why ?
adding to it, I want my cron jobs to work on preemptible instance as they are meant for it, i search a lot but didn't find anything related.
I can speak for cron.yaml.
1. Cron.yaml has timeout limit of 60 mins.
2. Cron.yaml has retry limit of 5
3. Cron are vm level so multiple apps with their own cron is out of question.
4. From fail or time out log entry doesn't include clear number of retry.
I have a website where I need to poll a webpage in every minute or so. The page on the server will perform different task. I am trying to use Windows Scheduled Tasks, but that cannot be set to run in every minute. I know that there is cron jobs for this on Linux, but that is not available on Windows.
Any ideas how to do this on Windows?
Try with windows service. It can be set to start when system is started up without the need for someone to log in. Also check this article http://www.codeproject.com/KB/dotnet/WindowsServiceScheduler.aspx
The repeat interval drop-down goes down to 5 minutes here and I can easily type a 1 instead of the 5:
http://hypftier.de/temp/task.png
It gets this actually right, since when I click on OK, the description of the trigger reads:
http://hypftier.de/temp/task2.png
Or maybe that was added to Windows 7 or Vista, but I doubt it, actually.