2,798 questions
Advice
0
votes
0
replies
23
views
Precedence implementation - compressed sparse row (CSR)
I'm doing a model for scheduling personnel through VRP formulation and I would like to know how can I integrate precedence binary matrix, using the CSR to accelerate the data processing.
My precedence ...
1
vote
0
answers
81
views
MacOS does not grant requested thread QOS
I would like to run a single-threaded program in MacOS 26.0 at the highest QOS level (QOS_CLASS_USER_INTERACTIVE), in order to get more consistent performance on a compute-bounded benchmark. By ...
0
votes
0
answers
48
views
Scaling APScheduler 4.0.0a2 with Executors — Jobs Ignored When Multiple Schedules Run Simultaneously
I'm currently using APScheduler 4.0.0a2 in my project, and I'm running into multiple issues:
No migration path: I noticed that there’s no migration available from
4.0.0a2 to 4.0.0a6, which is ...
0
votes
1
answer
94
views
Find ternary relationships with no duplicates for game scheduling algorithm
I'm working on assigning groups in Python using rules.
You could think about it like building a season for a three player based game.
Each player needs to face the other players on the list exactly ...
0
votes
1
answer
65
views
Question about using LOC participation type for multiple participants in the Appointment resource
I'm working on a FHIR-based integration for surgical scheduling, and I have a question regarding the use of the participant element within the Appointment resource.
We know that participant.actor can ...
0
votes
0
answers
78
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 ...
0
votes
1
answer
154
views
How do you handle scheduling 100s or more of notifications when Android limits you to ~50 pending?
I'm working on a Flutter app that needs to schedule a large number of notifications (think calendar app with hundreds of events, medication reminders, etc.), but I've hit Android's limit of ...
1
vote
1
answer
82
views
Inetrrupting a thread / task during a for loop execution
Generally speaking. Let's say I have a C application running and it is currently executing a for loop for doing some calculations on local data, but then it gets interrupted.
In a multi-threaded ...
2
votes
1
answer
309
views
How to execute Quartz jobs in virtual threads
How can I leverage virtual threads to execute I/O-bound Quartz jobs within a Quarkus microservice, handling programmatic job triggering without cron-based scheduling?
We are considering Quartz for our ...
0
votes
1
answer
53
views
Openmp lastprivate confusing result
I am getting following results roughly 20% of the execution with the given code and lastprivate clause is not working as expected. Pls note that end value of b should be 50 however at times it is not ...
0
votes
0
answers
53
views
oracle enterprise manager cloud control 13c scheduling question for target availability report scheduling
I am trying to scheduling a Target Availability Report in oracle enterprise manager cloud control 13c. I want to schedule this report to run every hour only on Business days from 7 AM to 5PM. However ...
0
votes
0
answers
103
views
Kubernetes scheduler, empty node while scheduling
Problem: how to achieve exactly opposite behaviour for bin packing strategy in k8s?
Details: we have one app hosted on k8s. We run a couple of pods which we need to scale down and up very frequently. ...
0
votes
1
answer
361
views
JobRunr one of the JobParameters is not deserializable anymore
Been using JobRunr (7.4.1) in my Kotlin-based Spring Boot (3.4.3) app, where I am enqueuing jobs like this
jobScheduler.enqueue { serviceA.doSomething() }
and recently refactored the target service, ...
-1
votes
1
answer
124
views
Adding soft min,max and hard max consecutive day constraints to nurse scheduling example
I've been slowly learning my way through cp-sat by reading the nurse scheduling examples and made some modifications to the first nurse example to test what I've learned. First I took personal "...
0
votes
0
answers
36
views
How to use OR condition between Job success and time
I have a chain of jobs which are dependent on each other. There is a parent job that runs twice a month and then all children job run. However there are some jobs that needs to run whenever parent is ...
0
votes
0
answers
42
views
Does Preemptive Scheduling Inherently Require Time Slices?
I'm studying operating systems and have encountered conflicting information about preemptive scheduling, specifically regarding SRT (Shortest Remaining Time) scheduling. My question focuses on whether ...
0
votes
1
answer
111
views
Slow performance with simple constraint programming model
Im pretty new in the world of CP. Currently Im trying to solved a single machine scheduling problem with changeovers.
Here is my code and model:
from ortools.sat.python import cp_model
import random
#...
0
votes
1
answer
277
views
Schedule k tasks with times to finish w(k) and N workers, without any tasks occurring out of order within a single worker
Suppose I have several tasks with uneven lengths. For example, let k=8 and w(k)=[4,5,3,10,1,1,1,3]. How would I assign these to N=3 workers such that any tasks assigned to a given worker are ...
1
vote
0
answers
138
views
Why there is a state called `TASK_UNINTERRUPTIBLE` in Linux kernel?
Many programs in the Linux kernel follow this pattern:
for (;;) {
set_current_state(TASK_UNINTERRUPTIBLE);
if (CONDITION)
break;
schedule();
}
__set_current_state(TASK_RUNNING);
I'm ...
0
votes
0
answers
39
views
Continuous Dynamic Routing and Scheduling in a Network with Constraints
I am attempting to solve a scheduling and routing problem in a network. The graph and its properties are described subsequently.
Each node has a letter label, one constant value (capability), and one ...
1
vote
0
answers
43
views
CPU affinity after process cloning
I am cloning a process using the clone() glibc wrapper function.
For some unrelated reasons, I need to set the CLONE_THREAD flag bit ON. It implies that
If CLONE_THREAD is set, the child is placed in ...
1
vote
2
answers
103
views
Is it possible to somehow mix static and dynamic loop scheduling?
I am using a machine with 2 Xeon CPUs having 16 cores each. There are 2 NUMA domains, one for each CPU.
I have intensive computation, that also use a lot of memory, and everything is multithreaded. ...
0
votes
1
answer
75
views
Spring Boot multithread application
I'm trying to make a Spring Boot app that starts new thread which is doing the same job every second until thread pool is all used. I looked on available scheduling libraries, but I don't see any ...
0
votes
1
answer
136
views
Airflow DAG Scheduling Issue: Passing Correct Execution Date for Monthly and Weekly Runs
I'm facing an issue with Airflow where my DAGs are not passing the correct execution date to the queries within the DAGs. I have two DAGs, one scheduled to run monthly on the first of the month, and ...
0
votes
1
answer
78
views
Azure Functions TimerTrigger Schedule Not Working for Specific Times
I'm working with Azure Functions using a TimerTrigger, and I'm experiencing an issue where interval schedules work perfectly (for example, every minute, every 5minutes), but specific schedules do not ...
2
votes
0
answers
91
views
Optimal order to attack enemies in a game [closed]
Let's say you're being attacked by a group of enemies, each of which does a different amount of damage per second, and will take you a different amount of seconds to kill.
The goal is to find in which ...
1
vote
1
answer
69
views
EJB TimerService : schedule task to run every 90 seconds
I know that is possible to schedule a task using the timer service that will run every N seconds. One of the ways to do this , is described here : https://docs.oracle.com/javaee/6/api/javax/ejb/...
0
votes
1
answer
193
views
Understanding ZIO.Schedule
I am trying to figure out how to idiomatically use zio.Schedule. I see it has State, Input, and Output, but can't understand how I can make use of them.
For example, suppose, I have a utility function,...
0
votes
0
answers
93
views
How can I replace usage of two @PlanningListVariable in Timefold?
Recently, I was tasked with writing a program in Java to solve an assignment problem. Essentially, I have a list of workers and tasks, and I need to organize them into teams. Each team should consist ...
2
votes
0
answers
79
views
Round Robin Algorithm: Games Per Team Total
Round robin scheduling requirement: Games Per Team Total
I'm new to round robin scheduling and stuck on this requirement where we pass in the Teams array and minimum number of matches a team should ...
1
vote
0
answers
57
views
OptaPlanner Task assigning score corruption
I have a Task which has two planning variables: Resource and startDateTime. EndDateTime is a shadow variable. Resource has a list of tasks via @InverseRelationShadowVariable, which I use to get the ...
1
vote
2
answers
530
views
Highlight column in Excel based on time block
I have an Excel spreadsheet that shows the employee schedule, and I need it to highlight or outline the column based on the current time. It doesn't have to be date specific and I am fine with it ...
0
votes
1
answer
170
views
R Simmer: Custom priority with multiple trajectories
Recently came across the brilliant Simmer package and been thoroughly enjoying myself. I'm a little green however (apologies if this is daft) and I'm struggling with custom priorities when there are ...
1
vote
1
answer
511
views
GCC instruction scheduling: how do the algorithms differ?
GCC offers a number of options related to instruction scheduling in the compiler flags. An overview of what this means is on the GCC Wiki for "Instruction Scheduling", but this is well out ...
0
votes
0
answers
98
views
Linux IRQ handler gets affected from user-space process
I wrote a Linux kernel module which receives data from a remote core through shared memory and passes it on to a user-space application. My driver is notified about new data via a mailbox interrupt ...
0
votes
1
answer
447
views
How a neural network is mapped to a GPU? [closed]
I want to understand when a GPU executes a neural network, how the operations are mapped to the GPU's hardware resources. I am familiar with the architecture of GPUs (especially NVIDIA) and I ...
0
votes
1
answer
587
views
Scheduled messages in MassTransit
I use masstransit 8 + amazon sqs/sns, the app is running in Windows Docker container.
I send scheduled messages, and the delay could be up to few hours, here is the code:
public Task Consume(...
1
vote
1
answer
349
views
airflow scheduled with dag config parameters
I am running an airflow dag, and trying to run it on a schedule. When the dag is triggered by the scheduler, the dag run_config evaluates to None.
I tried this, but it did not work for me - Airflow ...
1
vote
1
answer
258
views
MLFQ anf RR in XV6
I am trying to understand how the MLFQ and RR in XV6 work. An implementation i have seen is as follows:
void rr_scheduler(void) {
struct proc *p;
struct cpu *c = mycpu();
c->proc = 0;
...
0
votes
0
answers
103
views
Linux pthreads are extremely slow on multicore server
The server under consideration is equipped with two CPUs, each having 24 physical cores, and operates on Ubuntu 23.10. I observed a significant slowdown in one of my Python scripts, with its speed ...
1
vote
0
answers
80
views
Is there a way to switch the current task to a higher priority task with asyncio?
The current project I am working on involves a rate-limited API where you cannot make more than 100 requests in a minute window. I am trying to build some logic that will prevent my code from going ...
0
votes
0
answers
358
views
How to schedule a facebook post in nextjs?
I'm looking to make an app that can schedule and edit the post if needed a scheduled API for posting text and images to social media.
In my application, I want to post a Facebook post in 2 days, and ...
1
vote
1
answer
1k
views
How to Schedule a Vertex AI Notebook Execution with Custom Environment Including Scripts and Config Files?
I'm working with Google Cloud's Vertex AI Workbench and have developed a Jupyter notebook that relies on a specific project structure, including several folders, Python scripts, and a configuration ...
2
votes
1
answer
560
views
Round Robin Implementation with Different Arrival Time
I have created a Round Robin Algorithm with C. The output I get for 5 processes with the same arrival time is correct but incorrect for different arrival times. Below is an example,
RRB.C
#include <...
1
vote
0
answers
92
views
Airflow: Find a DAG schedule Dataset URIs from DagBag
I am building some integration tests (in pytest) that load the Airflow (2.8.2) DagBag and confirm that all DAGs scheduled with Data-Aware Scheduling reference Datasets that are the outlets of existing ...
-1
votes
2
answers
241
views
Swiss Scheduling System for Ping-Pong league
I am working on scheduling 8 showcases for the year. I have dataframes for each showcase that have rank and conference from where each player is from. Each showcase has a different number of players ...
1
vote
0
answers
52
views
Error while attempting to Implement Preemptive SJF in C
I've implemented a PSJF algorithm, however for some reason
the code here:
if (!tasks[i].completed && tasks[i].arrival_time <= current_time && tasks[i].burst_time < ...
0
votes
1
answer
108
views
OptaPlanner - use groupBy for avoidOvertime but only on the Resource creating the overtime
I am trying to solve a Scheduling problem that involves Resources in a work order assigned to a project. When a Resource is assigned at the exact same time as another and the sum of their assigned ...
0
votes
1
answer
426
views
Setting up a Cron Job to Trigger on the Y-th Day Every Month, Handling Non-Existent Dates
I need assistance with configuring a recurring cron job to trigger an event on the Y-th day of every month. While I can use a straightforward expression like 0 0 10 * ? * to trigger the event on the ...
1
vote
2
answers
721
views
How to correctly implement and use chunking and batching a collection of promises/async functions?
I am facing two scenarios when batch processing a large collection of async functions:
Collect all the async functions:
import { chunk } from "lodash";
const func = async () =>
new ...