Reputation: 1457
Say a client is happy with the work you've done creating a script to accomplish a task that gathers some information and outputs a hefty database file. Then, they're interested in having the task run periodically (approximately monthly) without human intervention. The client is not interested in running the task locally, so you're forced to find somewhere else to do it -- somewhere, as hokey as it sounds, "in the cloud."
What techniques/services would you use to accomplish this cheaply?
Things I've explored so far:
Do you have experience with these or any other options?
Upvotes: 2
Views: 461
Reputation: 470
You can use http://guardiano.pm and than with that you create a job and call your api when you want. Guradiano will than call your/api/dothat and the app will execute some task. One wat to secure that is to send some parameter with the request and only if the right parameter is sent you will execute the action.
Upvotes: 0
Reputation: 19393
I'd bite the bullet and get a VPS, after 6 months you'll almost certainly find that you've found a lot more uses for it.
I use a shared hosting service that allows this, and use it for a nightly sync.
Upvotes: 1
Reputation: 75437
Running the task itself on EC2 actually sounds very relevant, but running the cron itself on EC2 is indeed waste.
I can't think of how to run the cron on a machine that isn't yours.
Upvotes: 0
Reputation: 38346
I would use Amazon EC2. Just fire up an instance, copy the script to the instance, add it to the start up routine and append a shutdown to the end of the script. Bundle it into your own image and shutdown the instance. Now you can just fire up your own image monthly and it will execute the script and shutdown. You will only pay 10¢/hour with a m1.small instance.
You just need someone manually starting the instance monthly or have your client install a small monthly cronjob to start the instance.
Note: shutdown -h is required, otherwise instance will reboot instead of halt
Upvotes: 7