Questions tagged [cron-task]

cron-task is a task (command or shell script) executed periodically at certain times or dates by the cron scheduler.

Resources

925 questions
3
votes
1 answer

Cloud Functions for Firebase based timer

So I know that Cloud Functions for Firebase don't natively support cron jobs, and one have to depend on an external source to trigger an HTTP cloud function. But I don't think this will work in my case. I have an app in which users can create…
EHH
  • 151
  • 7
3
votes
1 answer

How dynamically set variables on Cron?

I'm trying to make a cron file to be placed in /etc/croon. d. My problem is I don't want keep this file updated, so I'm looking for a way to get the software version dynamically from a file. I have few other variables, but for now I think the…
LeonanCarvalho
  • 1,819
  • 3
  • 20
  • 39
3
votes
1 answer

Link RDS database of web tier environment to the worker tier environment elasticbeans

I'm struggling with my web application that I successfully deployed on AWS. Everything is working correctly on the web tier environment. However I have to add a worker tier environment to schedule background tasks. So now I have 2 environment for my…
3
votes
3 answers

PHP Task Scheduler Configured by Site Admins

I'm trying to create a way for administrators on my site to schedule a task similar to how I would setup a cron job on the server to run a particular script. I'd like them to have similar control on when the tasks runs e.g. every day at 14:00 or…
nfplee
  • 7,643
  • 12
  • 63
  • 124
3
votes
0 answers

Wait 60 Seconds to Run Cron Job After Reboot Then Run Job Every 10 Minutes

I have a script that I would like to run 60 seconds after initial system reboot and then every 10 minutes after that. I currently need two cron job listings to achieve this: */10 * * * * php myscript.php @reboot /bin/sleep 60; php myscript.php The…
Lloyd Banks
  • 35,740
  • 58
  • 156
  • 248
3
votes
1 answer

Python requests/urllib3 NewConnectionError only when script runs on a cronjob from the office

Weird issue I can't figure out. I have a script that uses Python's request library and is run on a cronjob. When I'm at home over a VPN it works fine. If I'm at the office the cronjob returns a connection error, more specifically a…
Andrew Schmitt
  • 135
  • 2
  • 7
3
votes
3 answers

How to append crontab entries using python-crontab module?

I would like to ask for help with the python-crontab module. I have a simple shell script to record an internet radio stream using the curl command. I want to schedule recordings ahead by scheduling them in a crontab. I found the python-crontab…
Pifik
  • 43
  • 1
  • 7
3
votes
1 answer

elastic beanstalk setting php crontab with cron.yaml

I've read the elastic beanstalk Periodic Tasks manual here, and after looking at this code in the cron.yaml file: version: 1 cron: - name: "backup-job" # required - unique across all entries in this file url: "/backup" #…
3
votes
1 answer

Parameter passing with usr/bin/php p in cron jobs

I have a problem with cron task creating. I created the task, and its working just fine on my server if I run the following command: php symfony namespace:taskname At the crontab I use the following command: usr/bin/php /home/user/mysite/symfony…
3
votes
4 answers

Non time-specific once a day crontab?

I have a python script, and I wish to run it once and only once everyday. I did some research on the crontab command, and it seems to do so, but at a fixed time each day. The issue is that my computer won't be on all day and a specific time for…
martianwars
  • 6,380
  • 5
  • 35
  • 44
3
votes
1 answer

Handling error in CronJob executing function

I am using CronJob. What should I do if I get an error when executing myFunction var CronJob = require('cron').CronJob; var job = new CronJob('00 30 11 * * 1-5', function myFunction() { //Do something }, function () { /* This function is…
Vo Thanh Thang
  • 330
  • 1
  • 5
  • 16
3
votes
1 answer

how to create schedule for push notification in nodejs

I need a help to create schedule for send a message from node.js application server. i am new to this problem so can anybody please help me how can solve this? i tried "node-schedule" module but it's not persist.
Lokesh G
  • 831
  • 11
  • 19
3
votes
0 answers

Crontab Enforcing Job Dependencies

I have stuggled on a few occassions to get crontab to work where job B depends on job A having completed sucessfully. The last time I had to use crontab for enforcing depencies we had to simulate success at the process level. That meant that job A…
Jack Kada
  • 24,474
  • 29
  • 82
  • 106
3
votes
1 answer

Cron job every day from 8AM to 8PM at 20 minutes interval

How to run cron job every day from 8:00 AM to 8:00 PM at 20 minutes interval eg cron job should start at 8:00 AM every day, then run at 8:20 AM then 8:40 AM then 9:00 AM up to 8:00 PM. Thanks. EDIT: How to Implement it with ruby whenever gem.
Braham Shakti
  • 1,408
  • 4
  • 22
  • 39
3
votes
1 answer

Running script that (might) take very long to finish in PHP

I am running a php script as a cron job that might take very long time to finish. It will create a massive xml file and save it. What should I think of if I implement it? One thing I do is set max_execution_time for a long…
user2878568