19,718 questions
0
votes
0
answers
14
views
ngx cron editor not patching value on edit mode in angular12
I am using Angular 12 with the package [email protected]. The cron editor renders correctly, but when I try to patch an existing cron expression into my reactive form, the UI of the cron editor ...
-3
votes
0
answers
25
views
How to handle crontab across multiple users on the same virtual machine? [closed]
Me and my team are working on a RHEL virtual machine and we were wondering how to handle the same crontabs from multiple users.
When one of the users does set a crontab no one but the user itself can ...
0
votes
1
answer
41
views
Cron job on 2 mounted folders with rsync [closed]
I have 2 mount points
df
Filesystem 1K-blocks Used Available Use% Mounted on
//my-source-address.org/folder 253956100 124456576 119499524 53% /mnt/source
/dev/sdb ...
4
votes
1
answer
132
views
Problem with cron setting in Laravel 12 that is not working
I have a Laravel 12.39 project (on PHP 8.3) on a shared hosting with cPanel access, and in the cron section, I have the following setting to run artisan schedule:run, but it isn't working. This was an ...
-3
votes
0
answers
51
views
Cron doesn't run [closed]
I have the following crontab -e on my server:
# Create daily gzipped DB-Backup
0 3 * * * /bin/docker exec -t database pg_dumpall -c -U root | gzip > storage/db-backups/dump_$(date +\%F_%H_%M_%S)....
0
votes
0
answers
26
views
Endpoint fails when trigger automatically by cron job but succeeds when cron job is triggered manually
I have a serverless function running on Nextjs, hosted on Vercel.
The database is hosted on Heroku. I use EasyCron as a provider for the cron jobs.
Recently, there was an upgrade on the database and ...
2
votes
1
answer
88
views
How can I capture the output of a subprocess (deno) called from a bash script when run by CRON?
I have a bash script that turns off stdout and stderr when not run interactively (i.e. run from CRON).
if [[ ! -t 0 && ! -t 1 ]]; then
#echo "The script is not called ...
1
vote
1
answer
34
views
Azure Function app Cron scheduler - missing runs
My function app is a timer triggered app and uses this cron expression for scheduling. 10 */6 * * * On most days it runs fine, but looking at the trace logs in Application insights it does not run for ...
0
votes
1
answer
73
views
Sidekiq cron job runs multiple times only on the 15th of each month (same schedule works fine on the 1st)
Sidekiq cron job runs multiple times only on the 15th of each month (same schedule works fine on the 1st)
My config/sidekiq.yml, I am using the built-in Sidekiq scheduler.
:concurrency: 5
:queues:
- ...
0
votes
1
answer
80
views
playing sound file when bash script is ran by cron task
below is a bash script that works fine tested in my terminal the sound is played but when it is actually ran in a cron scheduled task there is no sound only the dialog is shown
#!/bin/bash
export ...
2
votes
1
answer
99
views
html part of message is ignored when sending an e-mail with attachment using mail() in cron job
I'am sending an e-mail via cron job. The attachment works and is added to the e-mail message. However the html part that is referenced with $body2 does not come through.
The code looks like follows:
$...
-2
votes
1
answer
102
views
My script works when ran manually but fails in cron. Where am I going wrong?
I've written a script to reboot my router every other day. It works as intended when I test it out manually but doesn't work properly in cron.
#!/bin/bash
c=$(ls -a /tmp | grep -o ".daycount*&...
0
votes
0
answers
82
views
WP cron job is not triggering a custom plugin
I am working on a class-based plugin. I need a custom cron job that will be active when the plugin is active and run the plugin function. Now, I am facing an issue where it is not calling the plugin ...
1
vote
0
answers
30
views
Laravel 12: Run scheduled command at 07:00 UK time while server is on UTC
I’m using Laravel 12 and I want to run a scheduled command every day at 07:00 UK (Europe/London) time, but my server is configured with UTC timezone.
In my bootstrap/app.php I have and its working:
$...
0
votes
0
answers
26
views
Multi-timezone aggregation convention
Currently the structure is like a single parent node and multi children nodes
root: HQ (timezone: 'Asia/Seoul')
children: Middle East Region (timezone: 'Asia/Riyadh'), North America Region (timezone: '...
0
votes
1
answer
50
views
InvalidDataAccessResourceUsageException: could not execute statement [ERROR: column "" is of type jsonb but expression is of type character varying
I am using SpringBoot 3.5, PostgreSQL and Hibernate/JPA as ORM.
While using JSONB column from DB I am having this error.
org.springframework.dao.InvalidDataAccessResourceUsageException: could not ...
0
votes
0
answers
37
views
How to refresh a Zoho access token only when expired in a .NET Azure Timer Trigger (Isolated Process)?
I'm using a .NET 7 Azure Timer Trigger (Isolated Process) that runs every day at 10 am.
Zoho’s access token expires after 1 hour, so I want to cache the token in memory and only refresh it using the ...
0
votes
0
answers
113
views
Opensearch Unauthorised Issue
I am using AWS OpenSearch with fine-grained access control enabled. Initially, I was able to log in to the OpenSearch dashboard using my master username and password, and everything was working ...
1
vote
1
answer
45
views
Run Python-based service via crontab
I have a number of Python-based services on a Linux server that I start by running a .py file via a python3 bash command and that are supposed keep running indefinitely. One is a flask app, another is ...
0
votes
0
answers
103
views
Updating repeatable job's startDate/pattern does not update next run time (even after deleting and recreating job)
I'm using BullMQ (v5.56) to schedule repeatable jobs with a custom schedulerId as the job name.
When I create a job with repeat options like:
{
startDate: '2025-07-10T09:55:00.000Z',
pattern: '55 *...
0
votes
1
answer
73
views
Can't run cron with laravel command [duplicate]
I run: php artisan schedule:run
I get: INFO No scheduled commands are ready to run.
My routes code is:
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use ...
0
votes
1
answer
56
views
Splunk - Cron Expressesion - Configured for weekdays - getting triggered on weekend [closed]
I have Splunk alert configured for specific time (17:18 - 18 minutes past 5 afternoon) on weekdays.
I am using following cron expression
18 17 * * 1-5
Interpretation from crontab.guru - https://...
0
votes
1
answer
108
views
chmod() and utime error keep occurring in the site even after the permissions and ownerships are set
I am working on a client site, In the wordpress theme file I have added a cron.php file to perform some cron job functions. It was executing fine without any issues till last few days. When I checked ...
0
votes
0
answers
66
views
How to correctly schedule a task using crontab, PM2 and NodeJS?
I currently have a schedule set up using crontab that runs a file every morning using PM2 with the below command:
10 07 * * * export NODE_ENV=prod&& sudo -E pm2 start /pathToFile/file.js -n ...
0
votes
0
answers
60
views
Working with Edge Functions and Cron Jobs locally
I'm trying to implement som cron jobs which will invoke some of my edge functions.
Of course, first i need to do development locally, so i'm using local Supabase development studio with Docker, but ...
1
vote
0
answers
84
views
Getting Error while using Cron Job Scheduler in Node.js
const parts = dateFormat.formatToParts(date).filter(part => {
'RangeError: Invalid time value'. at DateTimeFormat.formatToParts
()
at buidDateParts
getting error in Cron Job Scheduler using with ...
0
votes
0
answers
37
views
NestJS Cron Stuck when K8s Pod dies
I have a NestJS cron job running every 5 minutes, deployed as a single pod in AWS Kubernetes. Last week, due to an issue with the Node process, Kubernetes scaled down the pod and started a new one ...
0
votes
0
answers
116
views
Scheduler completion regular task Moodle Stuck 3.6.2
moodle version 3.6.2, php 7.2 nts, Windows
I using task scheduler for running cron daily, when i check on moodle scheduledtasks
I notice the task completion_regular_task is stuck ( when i run on web ...
1
vote
1
answer
128
views
Spring skip overlapping task in Scheduled cron by default. How can I pospone the task instead?
I have following job in spring boot application:
@Scheduled(cron = "0/5 * * * * *")
fun processDocumentsBatch() {
log.info("job has started")
Thread.sleep(7000)
log....
0
votes
1
answer
94
views
How to use nestjs schedule
I am using the schedule of nestjs to process the cron so that it works every specific time.
However, even though the cron that was first created for testing has been removed, it continues to go back ...
0
votes
0
answers
49
views
How to exit gracefully a mock CronJob in Nestjs
Ever since adding a mock CronJob to my unit tests, I'm getting the message below:
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due ...
0
votes
0
answers
63
views
PHP MYSQL Select Random row from Database once a day and display it's values [duplicate]
I'm having a lot of trouble wrapping my brain around how to do this.
I have a database table with player information in it (Name, socialmedia handle, photo).
I have a module where I want to display ...
0
votes
0
answers
142
views
How to use Paylaod CMS Jobs Queue
I am new to Paylaod CMS & trying to use Jobs Queue, just trying to send email every minute and testing on local machine.
Here is my payload.config.ts:
export default buildConfig({
jobs: ...
0
votes
0
answers
50
views
Daily cron job only start every other day
I have a script registered in cron.tab by:
0 0 * * * /share/homes/check.sh
to start daily at midnight. The script has a self-terminating function to automatically stop the following day:
today=$(date ...
1
vote
2
answers
105
views
Date returns the same value across multiple requests when deployed to Vercel (Next.js Route Handler)
I'm using a Next.js App Router API route (app/api/notify/route.ts) to check the current time (in Brazil timezone) and trigger notifications when a scheduled time is reached.
This works locally, but ...
0
votes
1
answer
199
views
Azure Container App Job CRON expression for 12 AM–8 AM and 5 PM–11:59 PM in a single schedule
I'm trying to configure a scheduled job in Azure Container Apps (using Terraform) that runs every 10 minutes during two specific time windows:
From 12:00 AM to 7:59 AM (0–7 hours)
From 5:00 PM to 11:...
1
vote
2
answers
186
views
How to check if a Cron job is running on macOS
I have a cron job running in Django every minute that gets a random stock ticker from the S&P 500 and updates the user interface of my application. When I run python manage.py runcrons, the job ...
0
votes
0
answers
232
views
Testing cron jobs in vercel
I'm creating a cron job for my NextJs application, and I cannot seem to find how can I test it for my dev deployment.
Some docs say that cron are triggered only for production enviornment while some ...
0
votes
1
answer
148
views
increasing number of goroutines when using go-co-op/gocron
I'm trying to create some cron tasks to test out the https://github.com/go-co-op/gocron library. I'm exploring the singleton mode where if the same instance of a task is being executed, then it's ...
0
votes
1
answer
73
views
Cron job not working after moving to another hosting
I want to run my custom cron job, and I don’t know why it’s not registered or running.
In the database, I don’t see it registered—there’s no record of it.
In the log files, I don’t see any log ...
0
votes
1
answer
63
views
Python Script will not run in crontab -e and script has errors Missing X server or $DISPLAY
I have a Raspberry Pi 4 that I use at different locations to run a digital display. I use this script to run at reboot so that I don't have to determine the IP address each time and just start ...
0
votes
1
answer
224
views
Duplicate Notifications with Appwrite and FCM on Flutter
Description
I'm using an Appwrite function triggered by a cron job to schedule daily notifications via FCM. While notifications are sent at the correct time, I'm occasionally receiving duplicate ...
0
votes
0
answers
47
views
How to rotate some logs more frequently on ubuntu?
On ubuntu 20 and 22, logrotate is run via systemctl:
# systemctl cat logrotate.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/logrotate /etc/logrotate.conf
and it runs daily:
# systemctl cat ...
0
votes
0
answers
14
views
Kubernetes Cronjob and SMTP
Situation:
I have a php-apache web browser in a Kubernetes namespace that is controlled by an Ingress. The ingress exposes the web browser to the public IP within the organization, so its intranet and ...
1
vote
0
answers
68
views
Send AWS SES Templated Emails with Dynamic React Content in Next.js (Using Cron Jobs)?
I'm currently using Cron from next-schedule to send templated emails at specific times via AWS SES, and while this setup works, I’m looking for a cleaner and more maintainable way to manage these ...
1
vote
1
answer
146
views
Laravel 11 Crontab configuration with O2Switch server
I'm trying to set up the Laravel 11 scheduler on my O2Switch hosting.
Here's the line declared in my crontab.
* * * * * cd link_to_project && php artisan schedule:run >> /dev/null 2>&...
2
votes
0
answers
70
views
Why are there output differences when running Python code from cron?
I have some code which report status of a Pi using inxi. It runs fine from a terminal, but when it runs from cron it adds some characters and misses others.
This is the code:
#!/home/pi/.venv/bin/...
0
votes
0
answers
27
views
Issue with cron django
I am trying implementing django crontab into my django project. Everything works fine except logging, in the docker container folder with logging does not exist.
My settings
INSTALLED_APPS = [
'...
0
votes
0
answers
43
views
Seeking Help: Automating Weekly Attendance Backup for ZKTeco K40 Using PHP and Cron Job
I am a PHP developer working with a Zkteco K40 device, and I need assistance setting up a Cron job to automate a weekly backup of attendance data. Specifically, I want to retrieve the attendance data ...
0
votes
0
answers
83
views
Cronjob message: "you didnt provide an API-Key"
I have the following problem. I want to run a cronjob once a day within a Docker container
@daily /usr/local/bin/php /var/www/html/Tests/example.php
This script sends requests to ChatGPT. The ...