3,471 questions
188
votes
2
answers
122k
views
SLURM `srun` vs `sbatch` and their parameters
I am trying to understand what the difference is between SLURM's srun and sbatch commands. I will be happy with a general explanation, rather than specific answers to the following questions, but here ...
131
votes
4
answers
405k
views
Python script to do something at the same time every day [duplicate]
I have a long running python script that I want to do someting at 01:00 every morning.
I have been looking at the sched module and at the Timer object but I can't see how to use these to achieve this....
81
votes
10
answers
341k
views
How to launch Windows Scheduler by command-line? [closed]
I mean to open the built-in Windows GUI from command line- not to launch by Schtasks
64
votes
7
answers
156k
views
How can I see which CPU core a thread is running in?
In Linux, supposing a thread's pid is [pid], from the directory /proc/[pid] we can get many useful information. For example, these proc files, /proc/[pid]/status,/proc/[pid]/stat and /proc/[pid]/...
57
votes
7
answers
20k
views
Using Heroku Scheduler with Node.js
There is literally no tutorial about using Heroku Scheduler with Node.js. Assume that I have a function called sayHello() and I would like to run it every 10 mins. How can I use it in controller. In ...
56
votes
2
answers
38k
views
Testing @Scheduled in spring
Spring offers the possibility to schedule and execute tasks at specific intervals using annotations, e.g. @Scheduled
Is there a convenient way to unit test this behavior?
Of course I could call the ...
48
votes
4
answers
83k
views
Android 12: Using SCHEDULE_EXACT_ALARM permission to get/show data at specific time are safe in Google Play Policy?
I have an Android app on Play store for 8 years. Recently Google release Android S or 12 introduce some limit with Foreground service launch restrictions
https://developer.android.com/about/versions/...
45
votes
4
answers
79k
views
Scheduling a terminal command or script file to run daily at a specific time Mac OS X
I want to have my computer set its volume to a specific level every night at 11:45 PM. I'm running OSX 10.11.4. I can set the volume manually through terminal with
osascript -e "set Volume 1.7"
or ...
39
votes
15
answers
90k
views
Scheduler not running in Spring Boot
I have created a Spring Boot application. I have configured my class that contains the scheduler method startService().
Below is my code :
Service Class :
package com.mk.service;
import org....
37
votes
3
answers
71k
views
java quartz scheduler fire a new job immediately
Is it possible to crate a job that will trigger immediately ?
when i want the job to be triggres now i builed a cron expression string with the current date and time - i think it's too complicated, is ...
35
votes
3
answers
31k
views
Android Process Scheduling
I am trying to get a better understanding so I can scope the reliability impact from potential interoperability issues when creating an android app/service. I would like to figure out how process ...
34
votes
3
answers
31k
views
How to create a new Linux kernel scheduler
Looking through the scheduler source code (2.6.34, kernel/sched.c), I can see how the "pluggable" schedulers are used, and I believe I understand the interface to be implemented. What I don't ...
32
votes
3
answers
52k
views
How to stop a task in ScheduledThreadPoolExecutor once I think it's completed
I have a ScheduledThreadPoolExecutor with which I schedule a task to run at a fixed rate. I want the task to be running with a specified delay for a maximum of say 10 times until it "succeeds". After ...
30
votes
2
answers
14k
views
Do Heroku Scheduler tasks cost money?
I've been reading through Heroku's documentation but just found it plain confusing. I have an app up that has both a web-based front-end (with web process) and a task that's set to run every day at ...
28
votes
2
answers
23k
views
What makes a kernel/OS real-time?
I was reading this article, but my question is on a generic level, I was thinking along the following lines:
Can a kernel be called real time just because it has a real time scheduler? Or in other ...
27
votes
5
answers
24k
views
Avoiding kubernetes scheduler to run all pods in single node of kubernetes cluster
I have one kubernetes cluster with 4 nodes and one master. I am trying to run 5 nginx pod in all nodes. Currently sometimes the scheduler runs all the pods in one machine and sometimes in different ...
27
votes
4
answers
9k
views
Why does Linux's scheduler put two threads onto the same physical core on processors with HyperThreading?
I've read in multiple places that Linux's default scheduler is hyperthreading aware on multi-core machines, meaning that if you have a machine with 2 real cores (4 HT), it won't schedule two busy ...
24
votes
1
answer
26k
views
Calculate next scheduled time based on cron spec
What's an efficient way to calculate the next run time of an event given the current time and a cron spec?
I'm looking for something other than "loop through every minute checking if it matches spec"....
24
votes
4
answers
18k
views
Is it possible to run a cron job in a web application?
In a java web application (servlets/spring mvc), using tomcat, is it possible to run a cron job type service?
e.g. every 15 minutes, purge the log database.
Can you do this in a way that is ...
22
votes
3
answers
28k
views
ScheduledExecutorService start stop several times
I am using ScheduledExecutorService, and after I call it's shutdown method, I can't schedule a Runnable on it. Calling scheduleAtFixedRate(runnable, INITIAL_DELAY,
INTERVAL, TimeUnit....
21
votes
2
answers
23k
views
What is the concept of vruntime in CFS
I have been reading about Linux Kernel and CFS scheduler in the kernel. I came across vruntime (virtual runtime) that is the core concept behind CFS scheduler. I read from “Linux Kernel Development” ...
20
votes
4
answers
45k
views
Windows task scheduler to execute tasks in seconds
I'm looking for an open source/free task scheduler for Windows 7 (development machine) that will allow me to schedule tasks (HTTP requests to a web service) to run every x seconds.
I've tried a ...
20
votes
1
answer
22k
views
What is Rescheduling interrupts (RES)? What causes it? How is it handled in Linux kernel?
What is the difference between "RES: Rescheduling interrupts" and "LOC: Local timer interrupts"? What is responsible to fire the RES interrupt? Is LOC same as the general timer interrupt that is ...
19
votes
5
answers
11k
views
What is the difference between scheduler's standby() and pauseAll()?
I'm using Quartz Scheduler v.1.8.0.
What's the difference between scheduler.standby() and scheduler.pauseAll()?
standby() -
Temporarily halts the Scheduler's firing of Triggers.
...
18
votes
1
answer
28k
views
No handlers could be found for logger "apscheduler.scheduler"
from apscheduler.scheduler import Scheduler
import os
class ListHref():
def __init__(self):
print 'In ListHref Class!'
self.name_hrefs = {}
self.name_img = {}
self.path ...