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
4 answers

How to execute gcloud command in bash script from crontab -e

I am trying execute some gcloud commands in bash script from crontab. The script execute sucessfully from command shell but not from the cron job. I have tried with: Settng the full path to gcloud like: /etc/bash_completion.d/gcloud …
1
vote
1 answer

Scheduling function calls in a stateless Node.js application

I'm trying to figure out a design pattern for scheduling events in a stateless Node back-end with multiple instances running simultaneously. Use case example: Create an message object with a publish date/time and save it to a database Optionally…
Viktor
  • 56
  • 4
1
vote
0 answers

AH00491: caught SIGTERM, shutting down

I am running python's APScheduler in the background of my website's Django backend. However every 24 hours, at the same hour, I receive this SIGTERM caught error and the server is restarted which results in unacceptably wrong misfire times of around…
DKSander
  • 11
  • 2
1
vote
2 answers

Scheduling emails with cron jobs from a mysql table

I am trying to set up a system where a user enters some information in a form and an email will be constructed where the information is saved into mysql. I am trying to figure out how to make it so the email will be sent, for example, 20 minutes…
Christian Webb
  • 297
  • 1
  • 6
  • 14
1
vote
1 answer

How to autoextend maximo contract at due date?

I'm trying to know whether there is a standard way to auto extend a Maximo contract at due date. In most Maximo contract application, there are fields to set up auto extend but there is not any cron task to handle such purpose. Do I really have to…
Bigmwaj
  • 361
  • 2
  • 7
1
vote
1 answer

Can I create Heroku Scheduler jobs via the CLI or other non-web UI method?

I'm working on a project which uses Heroku's 'Deploy to Heroku' button to allow people to quickly configure and deploy an app. The app includes a recurring task, and I would like to use Heroku's free 'Scheduler' add-on to run it every day. Ideally I…
Ben Hull
  • 7,524
  • 3
  • 36
  • 56
1
vote
1 answer

How to run cron for every 2 minute but start at 5th minute of a specific hour?

Basically my cron is updating database every 2 minutes. But I need to run another cron which updates database every 24 hour. I need to make sure there are no race condition while the second cron (per day) is running i.e, both the cron can not run…
Ashish Raman
  • 21
  • 1
  • 4
1
vote
3 answers

How can I set Kubernetes Cronjob to run at a specific min time?

I would like to run the job at each 30 min + 2, such as 9:02 9:32 10:02 ... How to set this in * * * * *?
Hong
  • 365
  • 4
  • 14
1
vote
3 answers

How do I run 100 python files 2 minutes apart?

I want to run around 100 python scripts 2 minutes apart everyday to ensure that none of them overlap. I am using linux/Mac system. Is there a dynamic way of doing this using cron tab? Or perhaps is there a scheduler program that might make it…
Tea
  • 11
  • 2
1
vote
1 answer

How do I set CRON job limits to match a user?

I have a bash shell script that runs about 70 instances of a python application. Each python instance run TensorFlow 2.0 which wakes up once per hour and does some work. The bash shell script runs fine in the user shell but core dumps after the…
P Moran
  • 1,624
  • 3
  • 18
  • 32
1
vote
1 answer

Wordpress Cron job not running

I used wp_schedule_event() to schedule a task to run hourly on my website. For some reason, the function i want to run is working, the event itself appear under the 'cron' option table. Everything seems fine but when i wait and check if the…
1
vote
1 answer

Cron expression to run all the time except every Sunday 10am to 3pm

I need to suppress AppDynamics alerts on every Sunday between 10ma to 3pm and remaining all the time, they should run. To achieve this, i need to write a croj expression to satisfy the condition of "run all the time except every Sunday 10am to 3pm".…
1
vote
2 answers

Deleting an existing job/task in Crontab

I'm writing a script and I'm wanting to be able to delete a specific job/task that a user can create using the Crontab command. I know that to be able to simply delete all jobs/tasks, you just use: crontab -r; But if there's multiple jobs/tasks how…
user11341110
1
vote
2 answers

NodeJs Bull for Background tasks

I have been using Bull for background tasks in my node application. https://github.com/OptimalBits/bull Now that node is single threaded by nature. Does bull use the same thread on which node application is running or it forks another thread and…
Ijaz Khan
  • 41
  • 1
  • 4
1
vote
1 answer

Alternative to cron that retains environment variables

I have been trying to set up a cron job to run a bash script every 30 minutes on a Linux-based compute cluster. The problem is that some functions normally available in my shell are not available to the cron job, causing it to crash. I import all my…
Argon
  • 405
  • 1
  • 6
  • 18