Questions tagged [scheduled-tasks]

A scheduled task is a computer task that is scheduled to happen at a certain time and may repeat.

Scheduled tasks are used for automation so that human presence in not required in order to execute the required task at the required time. Tasks may be scheduled to run once, or repeatedly at a specific time of a specific date.

Tasks may also be scheduled to run when specific preconditions are met. This is usually achieved by running a second scheduled task that runs sufficiently frequently, checking for preconditions, executing the desired program when these preconditions are met.

Tasks may be scheduled:

  • On *NIX: using cron. See
  • On Windows: using Windows Scheduled tasks

Lots of task automation software exists, including

7207 questions
2
votes
1 answer

scheduling a bat file which uses rclone

I made a .BAT file which looks like this: cd "C:\Portable Apps\rclone" rclone mount Test: X: What this does is mount a cloud storage location to my "X" drive. When I am double clicking this batch file everything works properly, but when I try to…
AwesomeVk47
  • 73
  • 1
  • 5
2
votes
0 answers

Retrieve PCF Oauth token and use it to trigger API in PCF Tasks

I am trying to retrieve cf oauth token and use it to trigger another API via PCF Tasks scheduler . I am able to trigger API with no authentication , But when I try to parameterize oauth token I am getting an error that '''[ERR] bash: cf: command not…
2
votes
1 answer

Decoupling task submission and result processing while using ExecutorService/ThreadPool

I have use-case where in I should setup a scheduled job which triggers at a certain time interval. The job is to fetch workItems ( if any present) based on a certain criteria and process them. In processing these items I am trying to use and…
2
votes
0 answers

Scheduled Python tasks in Heroku Application

I'm hosting a Flask application in Heroku(free) which acts as an API and reads from an SQLite database file. The way the project ran on my computer, I had scheduled Python scripts which would run every night and append new data to my SQLite…
2
votes
1 answer

How can I schedule a GBQ query and have the data export to an Excel file every day?

Fairly new to GBQ as a whole, but I'm familiar with how to schedule a query as well as how to export data to a file, however, I can't for the life of me determine how to schedule the export after the query runs. Actually, just being able to schedule…
Rob
  • 897
  • 3
  • 8
  • 22
2
votes
1 answer

How to run a python script on loop for a period of time?

I have a python script which takes 30 seconds to run and output the data, I require. I want the python script to continually re-run after the python script has finished for a period of 15 minutes. I have tried using Windows Task Scheduler, but it…
onthepunt
  • 47
  • 5
2
votes
1 answer

Deploy gMSA account as task scheduler user account

I am trying to create a task on windows 2016 server, and need to deploy gMSA account as the log on account and below is the script i am using, i need to ensure that the option- "Run whether user is logged or not" gets selected,what change should be…
Avinash Mvrick
  • 25
  • 1
  • 1
  • 6
2
votes
1 answer

Why are scheduled methods randomly stopping in spring boot?

I have around ~20 scheduled methods for automation. They all run fine but they all stop after a few hours. My logs don't show any errors/server crash, it's just as if spring boot decided to not do any @scheduled methods anymore. My first intuition…
Javier
  • 39
  • 6
2
votes
1 answer

Should we unschedule Sling Jobs running within AEM after they are completed?

I am creating multiple SlingJobs on the fly using org.apache.sling.commons.scheduler.Scheduler OSGi service in AEM. i.e. scheduler.schedule(Runnable, ScheduleOptions); I have requirement that these Sling Jobs be run only once, so I am using…
Oliver
  • 6,152
  • 2
  • 42
  • 75
2
votes
1 answer

Chronic not selecting correct 1st monday of the month

def monday? require 'chronic' today = Date.today 1st_monday = Chronic.parse('1st monday of this month', now: today.beginning_of_month).to_date 3rd_monday = Chronic.parse('3th monday of this month', now: today.beginning_of_month).to_date …
user12763413
  • 1,177
  • 3
  • 18
  • 53
2
votes
1 answer

How do I make my program iterate only once every given time (ex 1/s)?

Let's say that for example I have a for loop which is reading instructions line by line from a .txt file and what I wish to do is make the program execute those instructions once every second or so. How can I possibly do this? Here's the code for my…
Pakito Gama
  • 102
  • 11
2
votes
2 answers

FCFS, python 3 what's wrong with my code?

I am attempting a "First come, first serve" scheduling algorithm, and all my process wait times end up being 0, even though the other wait times appear to be correct, or at least take on a value other than 0. If anybody has any ideas as to why this…
R00
  • 73
  • 1
  • 9
2
votes
1 answer

Python RQ-Scheduler not giving any output

I am unable to get rq_scheduler working. Here is a simple example: app.py from flask import Flask import datetime from redis import Redis from rq import Queue from rq_scheduler import Scheduler from tasks import…
f923
  • 41
  • 2
  • 5
2
votes
1 answer

bcp not running from task scheduler

I am trying to schedule a bcp job in server 2012 task scheduler. My batch file works fine when I double-click on it. It includes this line: bcp "SELECT * FROM [TIME_KEEPER]" queryout D:\DATA\TIMESHEET_DBASE.csv -S 10.0.0.54 /c /t, -T The file is…
Aliababa
  • 21
  • 2
2
votes
1 answer

Combining Scheduling and Assignment Problem Optimization in Python

I'm trying to combine a Scheduling and an Assignment Problem in Python. More precisely, I'm trying to assign deliveries to trucks and create a schedule (in the best way in form of date and time) for these deliveries. Right now, I modeled the problem…