Skip to main content

Questions tagged [cron]

Cron is a time-based job scheduler running as a daemon process in Unix-like computer operating systems. Questions about configuring cron for systems or administration are OFF TOPIC.

cron
0 votes
1 answer
20 views

Spring boot CRON expression is not working

I use spring bootd and I want to run a CRON each Saturday at 10 am. I decided to run the con every 10 minutes to see if the function was called. @Scheduled(cron = "0 */10 * * * *") public ...
Teddy Kossoko's user avatar
0 votes
0 answers
11 views

REplit + Node JS - How to override local file JSON data

My code snippet works with node js but my actual file “LOCAL_JSON_FILE_PATH” does not update with the new data. I want to remove old data from the file and import new data at set times. My code works ...
Houghtonator's user avatar
1 vote
0 answers
15 views

If multiple Python processes write data into InfluxDB, only parts are written

I have multiple Python processes, running on a server (RPI5) by cron, which read data from web API's, and write it then into a common InfluxDB database - on the same bucket. However, some of the data ...
lambruscoAcido's user avatar
0 votes
0 answers
11 views

Run every other day, regardless of day of week or month

I want to create a cron expression that runs every other day. I don't care if the day of month is odd or even, I don't care what day of the week it is. I want it to run, then wait 2 days and run again....
ewok's user avatar
  • 20.9k
-1 votes
0 answers
21 views

@nestjs/schedule throws Error on macOS: Nest can't resolve dependencies of the SchedulerMetadataAccessor

I use NestJS in the latest version (10.3.10) on macOS 14.5. For time-based scheduling, I installed @nestjs/schedule also in the latest version (4.1.0). After that, I implemented the code for the ...
Silas Manns's user avatar
0 votes
0 answers
23 views

Unable to start R script from crontab - Ubuntu 22.04.4 LTS

I tried to start R script from crontab on ubuntu 22.04.4 LTS but script didnt start my code (edited by nano crontab -e) gives 50 9 * * * Rscript 1.r crontab edited without nano crontab -e gives no ...
Jan Jankowski Janek's user avatar
0 votes
0 answers
21 views

CRON syntax on a specific day

I am trying to create a cron on this rule : The 15th of each month but if it is the week end launch it the next monday The cron below is near what I want, but it take the nearest work day. If the 15 ...
Etienne's user avatar
  • 408
1 vote
2 answers
58 views

Need help in preventing multiple crons/scheduler running in golang

I'm working on a Go microservice where I am using robfig/cron package to schedule jobs, initially thought of using time.Ticker() but package made it easier for me. My question is how to ensure cron ...
Harry's user avatar
  • 27
0 votes
0 answers
7 views

AWS Lambda: cron-based trigger is not created along with funtion

I'm declaring my function as dp-batch-expiration: name: dp-batch-expiration role: dpBatchExpiration handler: c.c.o.l.e.BatchExpiration::handleRequest events: - schedule: method: ...
Sergey Tsypanov's user avatar
0 votes
0 answers
54 views

Tkinter GUI doesn't open from Crontab

I have a Raspberry Pi 4 Model B, and I try to start a very basic Tkinter GUI on reboot. #!/home/pi/miniforge3/envs/myenv/bin/python import tkinter as tk def tk_gui(): root = tk.Tk() root....
Aenaon's user avatar
  • 3,463
0 votes
0 answers
17 views

Laravel schedule logs are not at same place as Laravel task logs

I have Laravel 8 app in development mode that has task scheduled on every 20 seconds: `protected function schedule(Schedule $schedule): void { $event = $schedule->exec('php artisan app:...
Nikola Tripkovic's user avatar
-1 votes
0 answers
34 views

How to Update Database Records Instead of Inserting When Running Python Script with Cron Job? [closed]

I have written a Python script for my automation project that listens to an MQTT topic and processes events named _PLC_Status. The script is supposed to insert or update the records in the database. ...
prathamesh paranjape's user avatar
-2 votes
0 answers
31 views

Cronjob - Python - Errors

I am trying to cron a script I have written but I keep getting errors. My cron looks like SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # For details see man 4 crontabs # ...
pr0xibus's user avatar
0 votes
0 answers
22 views

Cron Jon in Namecheap shared hosting and Laravel

I am a newbie in Laravel. I am trying to run a Cron job in Laravel on Namecheap shared hosting. When I run the script through browser it works perfectly. URL - https://mydomain.app/api/block-numbers-...
Yunus Aslam's user avatar
  • 2,467
0 votes
0 answers
15 views

Node.js cron task. Multiprocessing or parallel?

There is a MongoDB with 100k records and there is a cron task (using the node-cron module) that runs every hour to process these 100k records. The processing itself takes one hour. Could you advise on ...
Takezo4's user avatar

15 30 50 per page
1
2 3 4 5
1305