Questions tagged [scheduled-tasks]
A scheduled task is a computer task that is scheduled to happen at a certain time and may repeat.
6,776
questions
0
votes
0
answers
13
views
Requested OLE DB provider Microsoft.ACE.OLEDB.16.0 is not registered
I've already done some searching and installed every Access Engine from 2007-2016.
My Job is to create a spreadsheet in Excel that pulls info from a SQL server. So far on the SQL Server I can export ...
2
votes
1
answer
37
views
Snowflake SQL Compilation error on task creation with declare block
When trying to create a task(from a Snowflake worksheet) with two declared variables of type VARCHAR, an error is given for an <EOF> on the line when declaring the first variable. I am unsure of ...
0
votes
1
answer
7
views
Possible way to add multiple start_boundary for community.windows.win_scheduled_task
Been trying to find ways to make a trigger to work by setting a schedule task to run at 3 specific times but have not had any luck.
Current code fails as seen below.
community.windows....
0
votes
0
answers
25
views
Batch File in Scheduled Task? How to run cmd script with attribute?
Problem I'm trying to solve:
I want to create a Windows Scheduled Task to run a command line: 'SetEnvCmd PROD'
In the code below, I have the file path to the batch file, but I'm not sure how to add ...
0
votes
0
answers
10
views
How can you stop future Windows Task Scheduler tasks created with Repeat option on the Trigger tab
How can I prevent future occurrences from running on a Task where I set the Repeat option when triggering the task. Let's say I started a task at 1:00 PM and told it to repeat every 5 minutes for 1 ...
0
votes
0
answers
22
views
Win Task Scheduler generates multiple folders instead a zip file
I want to zip a project folder each month, programmed in a task scheduler executing a .bat file with the following script:
@echo off
set backuptime=%date:~4,2%-%date:~7,2%-%date:~10,4%
"C:\...
1
vote
1
answer
32
views
Why are there strange IPs when I query Get-NetTCPConnection -LocalPort 3389
I am trying to determine if I am connected through RDP and store the client IP in an environment variable with a scheduled task which runs whenever I log on. My plan is to find the established ...
0
votes
1
answer
15
views
"trigger option 'interval' must be in the XML duration format
I am currently new to Ansible and am trying to set scheduled tasks for specific times. According to the ansible doc, intervals must be in ISO 8601 Duration format which I did but I keep getting this ...
0
votes
1
answer
24
views
Correct way to have multiple threads execute a single task
I am trying to execute a single function foo on an interval, and MULTIPLE times per interval.
The way I am currently doing it is by creating a service with a newScheduledThreadPool of whatever is ...
0
votes
0
answers
12
views
Invoke-command Get-ScheduledTask Clips PSComputerName
invoke-command -computername $server -ScriptBlock { Get-ScheduledTask -TaskPath '\' -TaskName "*reboot*"|select (select -ExpandProperty PSComputerName),TaskName,Status }
When run the '...
0
votes
0
answers
12
views
Have a function run at a different time everyday
I'm coming up with a piece of code that runs at a specific time each and every day for 1 or 2 hours.
import schedule
import time as t
import re
import datetime as dt
sunset = open("TESTsunset....
0
votes
1
answer
10
views
How can you determine which Windows Task Scheduler iteration you are on if you have used the Repeat option?
For purposes of discussion, let's say I have created a Task in the Windows Task Scheduler and have set it to Repeat every 5 minutes for 1 hour. Other than scrolling through the History and counting, ...
0
votes
1
answer
44
views
Execute a function multiple times interval - Java
I have a function that is monitoring an SQS queue and tries to poll from it.
I want to call this function on an interval with multiple threads (let's say 5) to be able to poll more messages per ...
0
votes
0
answers
6
views
Wordpress wp_schedule_event not triggering at its custom interval
I am using an objected oriented design to build a plugin that will use a wp cron job to trigger a function every 10 seconds. However, I cannot get my wp cron job to trigger during this custom period (...
-1
votes
1
answer
45
views
SQL Server backup using powershell in Task scheduler
I am using PowerShell to backup a SQL Server database and use Windows task scheduler to schedule the script
Test
Run the script manually, it works.
Both SQL Server backup file (test.bak) and test ...
0
votes
0
answers
31
views
How should I go about writing code that runs on a schedule that will run on multiple containers without race conditions?
I'm wanting to write a service in nestjs that polls another service on a schedule. The problem is that if I have multiple containers how can I make sure one and only one container picks up the job? ...
0
votes
0
answers
15
views
Unable to run batch file from powershell script when it is a scheduled task
I am trying to run a batch file from a powershell script that is a scheduled task. The script sets up a filewatcher and in the action block it calls a batch file using start-process. If I run the ...
0
votes
1
answer
28
views
Powershell Script to create Scheduled Task on non domain computers
We are trying to execute a powershell script that will import a scheduled task to non domain and domain joined computers in our organization. The task is simply to disable wifi adapter when an ...
0
votes
1
answer
26
views
Execute a single task with multiple threads on a schedule
I have a function foo() that I want to be invoked by multiple threads on an interval. example: want to execute foo() every 100ms with x number of threads. I am unsure how to go about it.
I am looking ...
-3
votes
0
answers
15
views
Ways to monitor scheduled python tasks [closed]
In my business we have a number of python scripts doing mainly ELT processes running on a number of different servers. Mostly they are doing spatial transformations overnight, but some are running ...
0
votes
1
answer
30
views
How to reset scheduled (@Scheduled) in spring boot
I have spring boot application, where I need to refresh every 20 seconds so I created this:
@Scheduled(cron="*/20 * * * * *")
@GetMapping("/refresh")
public void refresh(){
...
0
votes
0
answers
9
views
Deactivating running/ready Tasks for Updates and Activating them again
I need to write a Powershell script, that can deactivate all running/ready tasks on multiple Servers, so that we can update the software on those servers.
After the Update all the Tasks that were ...
0
votes
0
answers
30
views
How to add scheduled job to all nodes in java springboot cluster?
We have two springboot servers. We use nginx so that the user request will be sent to one of the server node.
Now we want to achieve that:
After user inputs three string in the page "20220512 20:...
-1
votes
0
answers
24
views
Run a cron job after deploy in serverless
I would like to set a cron job in AWS serverless for every 30 minutes, including the start of deployment.
But what I observe is it only run the first job right after 30 min the deployment.
Can anyone ...
0
votes
0
answers
14
views
Incorrect Scheduled Task Time with PowerShell
When creating a scheduled task using the PowerShell script I want to run a script (which will have this in it) which allows me to create a task to run on reboot. The issue is when running this part of ...
1
vote
0
answers
19
views
How to remove Job Id from scheduler after enddate reached;
I started an scheduler with apscheduler with start and enddate
#syntax is wrong I know
scheduler.add_job(jobe, 'interval', startdate="Monday",end_date="Saturday",interval_by=&...
0
votes
0
answers
11
views
scale down azure sql database during nights and scale it up at mornings
i just created an azure pipeline to scale down the sql database. but i have no idea how can i schedule it. i found the -schedule command but that is for the whole pipeline. do we have any syntax for ...
0
votes
0
answers
17
views
Disable Tomcat stdout logging in a specific range of hours
Good morning,
I've tried to check this online, but I've not found a specific solution.
Is it possible to disable tomcat stdout logfile-writing only in a specific time interval? For example disabling ...
-1
votes
0
answers
41
views
threads in C .whenever i run it doesn't give the required output
this is the code and whenever i run this code it prints "Please add the number of threads to the command line\n" but i want it to print : Hello from thread %u - I was created in iteration %d ...
0
votes
1
answer
35
views
Spring TaskScheduler not starting all @Scheduled Jobs
Our Spring project doesn't start all the @Scheduled job functions, please help us figure our why.
Here is our configuration:
@EnableScheduling
@EnableAsync
@Configuration
public class AppConfig {
...
0
votes
3
answers
99
views
Telegram bot to send auto message every n hours with python-telegram-bot
I am quite new in building bots so I created a very simple Telegram bot and it works great but can't figure out how to make the bot send messages every n minutes or n hours when /start_auto command ...
0
votes
1
answer
16
views
Hazelcast cluster member crash results in loosing all scheduled tasks
We are running 4 instances of our java application in hazelcast cluster. We scheduled around 2000 task using schedule executor service schedule method. Hazelcast partition all these 2000 tasks across ...
0
votes
0
answers
8
views
Modules not recognized when running script windows task manager
I have a script named Sku_Matching_Salesforce.py. The location of the file is :
C:\Users\User\Desktop\Personal\DABRA\Sku_Matching_Salesforce.py
this is the VENV that is activated:
C:\Users\User\...
-1
votes
2
answers
35
views
Hourly cron Job Excuting 60 times
I am trying to send an email hourly using the Task scheduler in (laravel) framwork,
the command I am typing in the kernal.php:
$schedule->command('cron:activeUsers')->hourly()->...
0
votes
0
answers
10
views
Deactivating all "ready/running Tasks" on a bunch of servers in Specific Folders with the ability to activate those tasks again
i am looking for a Powershell script that can disable all tasks that are "ready" or "running" in a specific folder in the Task Scheduler on 3 or more servers.
After we updated the ...
0
votes
1
answer
28
views
Within RT Linux, is it possible to enforce linux background tasks to run on a specific core?
Assumptions:
RT Linux patch is applied
POSIX RT threads are available which can have core affinity applied
Using a multi-core processor, for simplicity a dual core with cores labelled A and B
No ...
0
votes
1
answer
33
views
Creating a scheduled task that runs an algorithm daily to check whether an item has expired
I am using c sharp in .NET framework and want to create a scheduled task that runs every day at the same time to check all items in a specified file are due to expire. If they are due to expire the ...
0
votes
0
answers
25
views
How to set a TTL / timeout on a Spring Scheduled Task?
I am using Spring Boot. I have a Runnable that I am setting up as an IntervalTask using SchedulingConfigurer. If one of the executions of the task runs for more than one hour, I want to kill it so ...
-1
votes
2
answers
69
views
How do you define the first day of the month (without including week-ends) in a batch script?
I have created a scheduled task in Windows that consists of running a batch script.
The problem is that this task has to be scheduled every 1st day of the month except for weekends.
For example, for ...
1
vote
1
answer
37
views
Create a schedule by the Schtask.exe
I try to create a schedule, but I always get the error (exit status 0x80004005) when I run the
package main
import (
"fmt"
"os/exec"
)
func main() {
cmd := exec....
0
votes
0
answers
19
views
Crontab cant's schedule python script [duplicate]
Currently my crontab is set to
40 12 * * * /usr/bin/python3 /somepath/script.py
This 'script.py' is a script that uses selenium and runs some web automation. It will open up chrome driver during its ...
0
votes
1
answer
22
views
Python sched module to enqueue delayed tasks in quart or flask
I want to schedule a task to run after a delay in my quart/flask application whenever a certain query is made. I'm hoping to use the sched module so there are fewer external dependencies, but I'm ...
1
vote
0
answers
14
views
Multiple Spring scheduled tasks triggered at the same time
I have multiple scheduled tasks, triggered by a CRON expression, at the same time:
@Scheduled(cron = "0 30 3 * * MON")
public void weeklyReport() {...}
@Scheduled(cron = "0 30 3 * * *&...
0
votes
1
answer
16
views
PiCamera and Schedule is not working together
i'm a bloddy starter at programming python and don't know, what i'm doing wrong. Im reading trough the documantaions from PiCamera and Schedule, but a combinded command is not working.
So i want to do ...
0
votes
0
answers
26
views
How to schedule a task or job 1 month in the future using Laravel?
I have an event based web application. So a User can create an event and set a start time and end time for the event, let's say it starts in one month from now. They want to send an email reminder ...
0
votes
0
answers
15
views
problems with Rmarkdown word document format when rendered from taskscheduleR in Rstudio
I have problems with formatting of my Rmarkdown word documents when I render them as part of an automatic task configured in R studio using taskscheduleR. More precisely, page breaks disappear. Does ...
0
votes
0
answers
27
views
Why is @Scheduled annotated method returning Null? [duplicate]
I wrote a method in a class annotated @componentto run every 12AM , to test that it is working I made the method run every 10 seconds but I get a null response . Here is the task
@Scheduled(cron=&...
-1
votes
0
answers
25
views
Is it possible to update CRON expression of a Java scheduler value taken from DB table that takes effect without rebuilding or restarting the project?
I have a production Java Spring Boot applications having quite a few schedulers that take in CRON expression from application.properties file. Every time we need to update any CRON expression, we ...
-1
votes
0
answers
11
views
What should we take into considerations of traffic when we just want python script to run every 20 minutes
Goal: running a simple python flask app minimize the network cost.
GCP has a free tier of GAE, where it as the limits of of 1G per day egress.
looking into python flask now, it seems have many ways to ...
0
votes
0
answers
20
views
Salt schedule not executing function
I have the scheduler enabled on my salt master. I have a job that is configured to execute a runner function on a list of machines every month, like this example:
schedule:
updater:
args:
- ...