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
1
vote
1 answer

Cron Schedule to run every 15 minutes between certain datetimes

I've got a cron expression for running every 15 minutes: */15 * * * * However, I don't want it to run between Friday 23:00 and Sunday 19:00. How could I achieve this within a cron expression? I know I can run between certain days but I can't figure…
1
vote
2 answers

any crontab alternative that you can start,stop, pause,resume, reschedule via an API in PHP?

Do you know crontab alternative that you can start,stop, pause,resume, reschedule via an API in PHP? Or is this possible in crontab? I have a long running php script that is executed by a cron. I would have to pause cron (while the script is…
Aivan Monceller
  • 4,636
  • 10
  • 42
  • 69
1
vote
1 answer

How to run groovy script using crontab?

I've tried to run a groovy script, using crontab: 16 21 * * * root groovy /home/vasily/test.groovy But I have an error: /bin/sh: 1: groovy: not found
1
vote
1 answer

Why is my task failing in Google's App Engine?

About 3-4 times a week one of my two 12hr tasks that acts as an ETL from an API endpoint to a Snowflake DB fails and I can't figure out exactly why. The Cron Task Mananger says it last ran at 6:29am this morning but in retrieving the logs there's…
1
vote
0 answers

Update stock quantity wocoommerce Daily with cron

I would like to update the stock of woocommerce products once a day. The quantity to be entered daily is given by an acf field present in each single product. The products are variable, but they all have a single variation, so the stock is set only…
1
vote
1 answer

How to order the Cronjobs to avoid overlap or conflict

I am running two cronjobs for python script every 5 minutes on ubuntu system, both are running successfully but not in the same order. when I checked log I found that some times second job ran first and some times befor completing first job second…
sanjay G D
  • 89
  • 8
1
vote
1 answer

CRON job for running every 20 day and on monday

I want run a cron job which will run every 20 day of every month and on monday. From one monday to another monday there should be gap of 20 days. For example - If the cron job run on this month monday means on 12th of oct then the next job will be…
Abhishek Singh
  • 42
  • 2
  • 11
1
vote
1 answer

How to write python crontab using wsl

Hi I am new to programming and I have to write cronjob for my python file. My laptop is window so I just downloaded wsl and I wrote some lines for cronjob but it seems that non of them works. */2 * * * * /Document/카카오톡 받은…
1
vote
0 answers

Node cron only excute specified date and stop completely after excute success

I have this code: var cron = require('node-cron'); var task = cron.schedule('0 36 17 10 SEP 4 2020', () => { console.log('will execute'); }); This code run console.log('will execute') at 17:00:00 10 Sep 2020 and I run success. But I think…
Java Dev Beginner
  • 349
  • 1
  • 5
  • 14
1
vote
1 answer

Laravel Cronjob :: Status: 404 Not Found X-Powered-By: PHP/7.3.20 Content-type: text/html; charset=UTF-8 No input file specified

i dont understand with this error message from cronjob log Status: 404 Not Found X-Powered-By: PHP/7.3.20 Content-type: text/html; charset=UTF-8 No input file specified. this is my command in cronjob cd /home/host/public_html && php…
Aga Yanu
  • 23
  • 5
1
vote
1 answer

Cron job indicates error - mv: cannot access but the files have moved

The logs for my cron job show the following: Your "cron" job on produced the following output: mv: cannot access *SRP* mv: cannot access 0001LO928365.CSE ... and so on. But the files did actually move to the desired location. What might…
manjug
  • 11
  • 2
1
vote
1 answer

How do I pass argument to a scheduled cron task, in Django?

I've set up a cron job to decrement the IntegerField of all objects, every minute. But it throws the error: TypeError: decrement_days_till_study() missing 1 required positional argument: 'Card' But I have no idea how I might pass this. cron.py from…
Dybton
  • 75
  • 8
1
vote
1 answer

Yii2 unable to run console application

I am trying to run my console application in yii2 but I am getting error. Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\console\Response::formatters' in…
Moeez
  • 494
  • 9
  • 55
  • 147
1
vote
1 answer

Azure Cron Schedule to trigger every second week on Monday (trigger one Monday and not the other, repeat)

Is it possible to schedule a function in azure to run every second week on a specific day of the week, example Monday? Or at least to run on the first Monday of every month? I try something like 0 0 1-7,15-21 1 * 1 but it runs on every 1-7 and 15-21…
Ricard
  • 153
  • 1
  • 11
1
vote
0 answers

Wait 5 minutes ---- run job ---- job finished ---- wait 5 minutes .... etc

Currently I have */5 * * * * (job) & My goal is to run a crontab each 5 minutes after it finished executing, not every 5 minutes. So what I want is ---- wait 5 minutes ---- run job ---- job finished ---- wait 5 minutes .... etc. but currently it…