3,471 questions
-3
votes
0
answers
28
views
Event loop vs cooperative scheduler [closed]
After learning about event loops (like in js or python) and Scheduler types, I am under the expression that an event loop is basically a simpler cooperative scheduler, with each task being able to ...
-2
votes
0
answers
80
views
Tried to modify Linux scheduler, QEMU boot hangs with this output [closed]
So I tried making some changes to the scheduler of Linux 2.6.38.1 for a uni exercise, but when I try to boot it with QEMU, it freezes with this log. Can anyone help me decode what is happening and fix ...
9
votes
1
answer
194
views
If I start two strictly CPU bound threads bound to the same CPU, and one is SCHED_IDLE, why does it ever schedule?
If I start two threads bound to CPU 0, where one is SCHED_IDLE, then why is it ever scheduled when the other thread is CPU bound at either normal priority, or at SCHED_FIFO?
For SCHED_FIFO I get it, ...
0
votes
0
answers
31
views
Error in V1Binding when using a custom scheduler
I encountered the error
V1_binding.py", line 156, in target
raise ValueError("Invalid value for `target`, must not be `None`")
ValueError: Invalid value for `target`, must not be `...
Advice
0
votes
2
replies
73
views
Does a higher priority task cause a CPU exception when it needs to run in an RTOS
This is still somewhat unclear, and I know that there are different types of RTOS out there with different settings.
Let's say that we're dealing with a preemtive scheduler in this case. When a high ...
0
votes
0
answers
53
views
Using ITaskService set up "Basic" Event instead of "Custom" c++/mfc
I'm using C++/MFC to configure a Task Scheduler task that is triggered on an Event. I set it up manually and exported the task to get the gist of what I need to set up.
I have this working fine but I'...
0
votes
1
answer
54
views
Linux scheduler : what is struct sched_entity and why not store task_struct directly
In the Linux scheduler, each CPU has one struct rq, which contains sub-runqueues for each sched_class (CFS, RT, DL, idle).
For CFS, the runqueue stores a task’s sched_entity (p->se) instead of the ...
1
vote
1
answer
71
views
Why must sched_class structures be tightly aligned in memory in the Linux kernel?
Each scheduling policy (like SCHED_NORMAL, SCHED_FIFO etc..) is implemented as a struct sched_class, and instances like fair_sched_class, rt_sched_class, dl_sched_class, etc., are defined using the ...
-1
votes
3
answers
190
views
Migrating from Joda-Time to java.time: How to replace time.toDateTimeToday().getMillis()? [closed]
I'm currently migrating my codebase from Joda-Time to the java.time API (Java 8+).
In one part of my application, I schedule tasks to run at a specific time either today or tomorrow, depending on ...
0
votes
0
answers
84
views
How to force Slurm to pack GPU jobs onto partially occupied nodes to free full nodes?
When users request 1-2 GPUs via sbatch --gres=gpu:1, Slurm locks the entire 8-GPU node. This fragments our cluster:
Multiple small requests spread across nodes (e.g., four 1-GPU jobs occupy four ...
2
votes
0
answers
105
views
Any efficient solutions to address the dependency that 'the j-th step of the i-th task is dependent on the (j+1)-th step of the (i-1)-th task'?
I have a workload consisting of a series of tasks and each task can be divided into k steps. So far, the j-th step of the i-th task depends on the j-th step of the (i-1)-th task. This can be easily ...
0
votes
1
answer
46
views
Laravel Scheduler Not Running Even Though It’s Configured in EC2
I have a Laravel scheduler configured to run every 6 hours. Based on the schedule, it should have already executed, but I don’t see any expected results or changes from it.
I also added a logger() ...
1
vote
1
answer
116
views
Rescheduling a task within the handler with db-scheduler java
class TaskData {
int id;
String status;
}
class TaskDbScheduler() {
private final SchedulerClient schedulerClient;
private final OneTimeTask<TaskData> oenTimeTask;
public ...
0
votes
1
answer
50
views
@Scheduled to skip if fixedRateString is not present
Team, I am working on a project which refreshes the cache data on a timely manner.
This piece of code sits on a java library and this java library is consumed by a Spring boot application. Now, as per ...
0
votes
0
answers
257
views
Airflow 2.10.5 not respecting some parameters from the airflow.cfg
We just upgraded from version 1 to 2.10.5 I have set up in the airflow.cfg test_connection = Enabled so I can get the icon in the UI to be dark blue so we can test out connections to databases but it ...
0
votes
0
answers
33
views
Win 10 Excel Object Model job fails in Job Scheduler
Windows 10 and Excel 365 patched up to date. Using powershell to run an Excel Object Model session, I open a workbook which contains a query which fetches data from a database to update cells in a ...
1
vote
1
answer
154
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>&...
1
vote
1
answer
99
views
C++ give Schedular hint to schedul to the next thread for std::thread
I have several threads working on different problems at the same time.
Sometimes some threads are waiting for the results of other threads, whose status is set by a boolean variable.
When a thread has ...
0
votes
1
answer
118
views
Scheduling periodic RQ tasks, using asyncio
I think that the architecture of RQ Scheduler is fundamentally flawed and it's much more complicated than it needs to be.
Schedules are stored in Redis
Even if you remove or modify your scheduling ...
0
votes
1
answer
40
views
How to pass dynamic Periodic interval from runnable task to Java : ScheduledExecutorService
Job: Need to invoke API periodically with time interval. Interval is determined from API only because API will return expireIn as a interval and We need to invoke the API again with that interval.
...
0
votes
1
answer
190
views
Azure Logic App - Scheduler is delayed but needs to run on a certain time
I have a workflow which should run every day at 6am, but on several days it is delayed up to 4 hours or sometimes more.
And it is not, that the workflow is triggered at 6am and was on hold for 4 hours,...
-2
votes
1
answer
110
views
Does Spring Boot ConcurrentTaskScheduler create new threads for each scheduled task, or can it cause blocking?
We have many Spring Boot 2.7 scheduled jobs which are defined like this:
// runs every 1 minute
@Scheduled(cron = "0 */1 * * * *")
public void doSomethingImportant() {
log.info("1 ...
1
vote
0
answers
120
views
How to specify DBMS_AUTO_TASK_ADMIN.ENABLE's IMMEDIATE Option?
How does one specify the IMMEDIATE option when invoking the DBMS_AUTO_TASK_ADMIN.ENABLE() subprogram?
For reference:
Oracle 19 PL/SQL Packages and Types Reference
Specifying the DEFERRED option ...
1
vote
0
answers
62
views
Oracle Automated Maintenance Tasks (autotask): client_name vs. operation?
What is the difference in purpose between Oracle's Automated Maintenance Tasks (autotask) client_name and operation?
I am aware that they can be identified with DBA_AUTOTASK_CLIENT and ...
0
votes
0
answers
47
views
error bean serialize in schedul job with redissonClient and SpringBoot
I use org.redisson:redisson(3.39.0) and springboot spring.boot(3.0.0)
my redis is cluster and i create a scheduler like this :
Config config = new Config();
config.useClusterServers()....
0
votes
1
answer
101
views
How to take a task off a cpu runqueue in sched-ext and ebpf
I am leveraging the new Sched-ext capability in the kernel to write an ebpf scheduler using C. I have two sets of CPUs: the fast group and the slow group. When a task first arrives, it's scheduled on ...
1
vote
1
answer
328
views
How to Test Combine Code with .receive(on:) Without Injecting Schedulers?
I am using the Combine framework in my iOS project, and I am writing unit tests for my code. However, I encounter problems when testing code that uses schedulers. Here's an example of a function I ...
1
vote
1
answer
96
views
Updating task scheduler entries to modify task arguments
I am attempting to iterate over many task scheduler entries to modify the task arguments. We have many servers running simultaneously launched scripts, all need to be reachable on the console if a ...
2
votes
2
answers
438
views
Why is Linux interrupting processing every second even with isolated core
I'm working in a real-time system Linux with the PREEMPT_RT kernel, multi-core Xeon processor. I have an isolated core, and turned off irqaffinity and am using the nohz_full option on the isolated ...
0
votes
1
answer
33
views
Avoid duplicate scheduled task executions across multiple Nginx servers in Spring Boot
I have a Spring Boot application deployed on two Nginx servers. It includes a daily scheduled task to generate reports using the @Scheduled annotation, which triggers the addDailyReports method.
The ...
0
votes
0
answers
67
views
Why is @Schedule annotation not working in java
I want to use the @Schedule annotation to activate a method every 5 seconds. But the scheduler never activates the method. The application runs in Open Liberty. None of the two System.out.println is ...
0
votes
1
answer
295
views
How to Prevent Pilled Up Job Executions in GoCron if Job Takes Longer than Scheduled Interval?
I'm using the github.com/go-co-op/gocron package in my Go project to schedule tasks. The job is set to run every 2 minutes, but there's a scenario where the task might take longer than the interval (e....
0
votes
1
answer
38
views
EJB - Inject into @Schedule @Singleton with @Produces fails; no scheduler running
I want to call this method regularly to clean up Apache HTTP connection pool in an EJB context. For that I created this scheduler class:
@DependsOn("PoolingHttpClientConnectionManager")
...
2
votes
0
answers
69
views
Oracle - DBMS Scheduler to run on the second to the last workday of the month excluding weekends and US holidays
Good day,
I am trying to create a DBMS Scheduler that will run at 8:00 A.M. on the second to the last workday of the month excluding weekends and US holidays.
a) If the current date is September 1, ...
0
votes
1
answer
90
views
SAS EG: Scheduled job CLIENTUSERID not resolved
I'd like to be able to assign a "default" CLIENTUSERID when the SAS scheduler runs. I've tried to use coalesce but it doesn't work:
%LET USER_ID=%SYSFUNC(COALESCEC(&_CLIENTUSERID,'123456'...
0
votes
1
answer
56
views
why my PyTorch scheduler doesn't seem to work properly?
I'm trying to train a mobileNetV3Large with a simple PyTorch Scheduler.
This is the portion of the code responsible for training:
bench_val_loss = 1000
bench_acc = 0.0
epochs = 15
optimizer = optim....
2
votes
1
answer
2k
views
learning rate in torch.optim.AdamW has no effect?
I am working on fine-tuning BLIP-2 on the RSICD dataset using LoRA. I am working on colab, using an A100. I am strangely finding that when I set the learning rate in the code below, it has no effect. ...
1
vote
1
answer
207
views
Interpretation of prev task within context_switch() in Linux kernel scheduler code
I'm trying to understand the implementation of context switching in the Linux kernel (specifically in x86) and to that end I have a couple of questions.
Why is the switch_to() macro defined and ...
0
votes
1
answer
73
views
Scheduler stopped working when injecting ILogger in IJob when using Quartz.net
Program.cs
IHost host = Host.CreateDefaultBuilder(args)
.ConfigureServices((hostContext, services) =>
{
IConfiguration configuration = hostContext.Configuration;
AppSettings....
0
votes
1
answer
124
views
Cron scheduler support in ActiveMQ Artemis
I am in the process of transitioning my ActiveMQ Classic-based project to ActiveMQ Artemis 2.19. (Target version for Artemis is preferred due to the project relying on Java 8.)
In ActiveMQ Classic, I ...
1
vote
1
answer
40
views
Adjust Header Attendee name in horizontal resources grouping Kendo UI Scheduler
i am using the horizontal resources grouping in Kendo UI Scheduler and I want to adjust the header attendee name same like word wrap css property so that last name will come in second line. please ...
0
votes
1
answer
49
views
Action after one hour from the specified time
I have a service that records users of my telegram bot in the database. And I need to implement a mechanism by which if a user has not responded for an hour, he is recorded in the database. The user ...
1
vote
0
answers
52
views
Kendo Scheduler component focus on last added/edited event
I am using Kendo UI's Scheduler component as a planning tool.
I am using the multi-week-view component to visualize the workitems of multiple people across multiple workplaces.
When I add/edit/remove ...
1
vote
0
answers
63
views
Scheduled Job not getting executed after DST
We have Job which runs everyday at midnight at 02 AM EST. Using @Scheduled annotation with cron Expression in Spring Boot based application. The issue is, Job was running fine until daylight saving ...
1
vote
2
answers
802
views
How to schedule jobs from apex as another user
I have apex code that creates a scheduled job when a Contact is created. It runs 5 minutes after creation. It modifies something on the Contact, and when it does this, it shows "Last Modified&...
0
votes
1
answer
333
views
How to access environment variables for Scheduled Colab Enterprise Notebook Run
I currently have a notebook on Colab Enterprise that accesses environment variables from a .env file to get access into a database to do ETL. When I run the notebook manually using a runtime instance, ...
0
votes
1
answer
79
views
Two golang goroutines sending messages to the same channel result in a 10-fold increase in time consumption?
Why is there such a significant difference in the time taken for sending and receiving data through a channel between two goroutines?
golang version 1.18
this is my code
package main
import (
&...
0
votes
1
answer
153
views
How to regularly trigger its own endpoint?
I have an existing endpoint calling some function, and it works fine when doing a rest call to the endpoint. Then I want to create a scheduler that will call that function regularly. The scheduler ...
0
votes
1
answer
83
views
What is the relationship between gomaxprocs and process?
In method sync_runtime_canSpin of file /usr/local/go/src/runtime/proc.go, why the comment corresponding to
gomaxprocs <= int32(sched.npidle+sched.nmspinning)+1 is GOMAXPROCS>1?Shouldn't sched....
0
votes
0
answers
48
views
An interesting scheduling problem: how to serve multi-stage microservices chain that share resources
Recently, I encountered a scheduling problem in a distributed system and I hope to get some help: for a multi-stage microservice that has two stages calling the same instance, such as A-->B-->A, ...