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
2
votes
0 answers

Plesk Schedule Task Empty File

I want to create a cron job from scheduled tasks in Plesk. I am facing a weird problem with it, I have created the task and my command runs successfully if I press "Run now". If I let it runs automatically every 1 hour the file is empty. Here is my…
stelios
  • 71
  • 5
2
votes
0 answers

Google Authentication of Pydrive from server

I have this python code snippet to upload file to google drive. from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import os g_login = GoogleAuth() g_login.LocalWebserverAuth() drive = GoogleDrive(g_login) with…
Karanam Krishna
  • 365
  • 2
  • 16
2
votes
1 answer

How to validate cron-expression with giiven limit?

I need to build a cron-validator. This is a cron expression,it means every 30 seconds. */30 * * * * * The task is to show an error if the time is less than 30 seconds. Example: So if I write the following, which means, every 10 seconds, */10 * * * *…
Ashik
  • 2,888
  • 8
  • 28
  • 53
2
votes
1 answer

Schedule a cron once in every 2 years in node js

I want to schedule a script to run once in every 2 years. Could anyone please help me in getting this cracked. I couldn't find the field to add the year.
pooja
  • 25
  • 7
2
votes
3 answers

NestJs how to run a cron job 3 times a day at specific times

I'm building a notifications trigger method and wanted to be run 3 times per day at specific times. I have checked the documentation but didn't understand that regex code for and how to customize it as I need it! Now my method looks like this: ( it…
hesham shawky
  • 1,073
  • 4
  • 21
  • 44
2
votes
1 answer

How to run python file repeatedly every day in GCP(google cloud platform)?

I have written python code to move data from firestore to Bigquery. How can I run this code at a specified time every day? Please help beginner
2
votes
1 answer

Cron task inside container from host

I am trying a cron task inside a container from host but with no luck. From the host I am adding the following line on crontab -e * * * * * docker exec -it sample_container bash -c 'touch /selected/directory/temp$(date +%H-%M)' But this is not…
neoceph
  • 75
  • 11
2
votes
0 answers

Cron job created from Cronr R package halting execution without error message to debug

I have a script written in R that collects data from a small group of APIs then writes collected data to a google drive account (using googledrive package). This script runs without errors in RStudio and command line but, when I attempt to schedule…
RAH
  • 395
  • 2
  • 9
2
votes
2 answers

PHP Script is not running via cron job

I have a php script that queries a MySQL and IBM Informix database (located in other host), generates json files, handles the information and inserts it into the MySQL database. The script has a main file and another that has the query handling…
Leandro Arruda
  • 466
  • 6
  • 16
2
votes
2 answers

Cron wont import pandas module to execute python script. ```ImportError: No module named pandas```

I am using xubuntu 18.01 I have a python program that that scrapes weather data and saves the files as a csv. It works perfectly running the command weatherdata in terminal after i gave it permission using chmod +x weatherdata. I would like this to…
Lucas Muller
  • 101
  • 9
2
votes
0 answers

Fatal error: Class 'Illuminate\Console\Command' not found

I've been trying to run a cron task in my server using Laravel. The problem is that I'm getting this error every time. Fatal error: Class 'Illuminate\Console\Command' not found I've been trying running the composer install and composer…
Daniel Hernandez
  • 195
  • 6
  • 17
2
votes
2 answers

Preventing Google App Engine Cron jobs from creating multiple instances (and thus burning through all my instance hours)

Very related to this question (How can I prevent my Google App Engine cron jobs from burning through all my instance hours?), yet unfortunatly I not only experience something similar, in my Cron-jobs in Appengine multiple instances are created,…
davidverweij
  • 328
  • 1
  • 15
2
votes
2 answers

What happens if server crashes, after scheduling task using cron

Say I scheduled a task for time t2 in future t1 < t2 < t3 What if server get crashed at time t1. Will the task scheduled to execute at t2, still executes, if servers restarts before time t2 ( t1 < t < t2 ) ? What if server crashes at t1 and restarts…
chirag jain
  • 419
  • 4
  • 12
2
votes
1 answer

Execute task on specific time in Django

I have to execute a task at a specific time, which is specified by the user. This will not be fix time... It will be according to user... On that time I have to execute my task... To achieve this I tried to use django-cron also tried to use…
Shreejay Pendse
  • 194
  • 2
  • 13
2
votes
1 answer

file conversion every after 10 minutes cronjob

I have added a cron job to execute a script after every 10 minutes , the script checks if the any new file is uploaded to directory, if there is a new file then it converts the video file to a small size like i have given in the command .. Below is…
raman
  • 67
  • 1
  • 9