Questions tagged [scheduling]

Questions on managing computation or tasks order. Synchronizing parallel procedures, dynamics objects and so on. It's meant to be a secondary tag to narrow the scope of question already tagged with parallel, dynamic, evaluation and similar tags.

Filter by
Sorted by
Tagged with
2 votes
0 answers
57 views

Using Mathematica as an alarm clock by scheduling a sound file to play at a certain time [closed]

With Mathematica 12.2 I can import a sound file like this: f = Import["F:\\mysound.mp3", "Sound"]; and play it like this: ...
user avatar
  • 175
1 vote
0 answers
43 views

Why is my autoSave function not working?

This is not asking how to set up a timed recurring autoSave so please do not flag as already answered. The following should work but it doesn't and I cannot figure out why. While running this I made ...
user avatar
  • 1,647
1 vote
1 answer
67 views

How to stop a task deployed to the cloud?

While trying to learn about cloud tasks, I evaluated CloudDeploy[SessionSubmit[ScheduledTask[Print[Now], Quantity[1, "Minutes"]]]] It is now printing the result ...
user avatar
  • 5,310
13 votes
1 answer
310 views

Scheduled tasks and dynamic updating

Here is an example: x = 0; Dynamic[x] now please run: SessionSubmit[x = 1; Pause[10];] Problems: Annoying one: ...
user avatar
  • 132k
1 vote
1 answer
66 views

Problem when using TrackedSymbols and UpdateInterval to refresh different expressions at different times inside Dynamic

While attempting to optimize my program, I noticed an issue with the Refresh expressions I am using inside a particular Dynamic[]. I will use a simplified example ...
user avatar
  • 117
5 votes
1 answer
62 views

IntervalSlider and updating function specification

IntervalSlider seems to ignore Dynamic's second argument: ...
user avatar
  • 132k
1 vote
1 answer
231 views

Plot Serial data from Arduino with time date problem

My WM code reads Arduino data from three analog sensors. My code successfully captured the data from the buffer and add the date of capture using the Now[] function....
user avatar
4 votes
1 answer
106 views

Getting print messages into a custom user interface constructed via DynamicModule

I have not been able to find the answer for the following problem, and would be happy to be educated. I am writing a custom user interface around some code that has lengthy calculations. In the ...
user avatar
10 votes
1 answer
113 views

SystemOpen from ScheduledTask

I could bet it used to work, now the following code fails 95% of times: RunScheduledTask[Echo @ SystemOpen @ "https://www.wolfram.com", {1}] Can you reproduce ...
user avatar
  • 132k
5 votes
2 answers
84 views

Updating/ disabling certain slider values dynamically in Manipulate

I am struggling with Manipulate dynamic updating. I would like to have an image containing two points which can both be moved in real time to any location on the ...
user avatar
  • 145
3 votes
2 answers
95 views

MouseOver and Speak

I am having an issue where Mouseover doesn't work with Speak and instead returns Null. All ...
user avatar
  • 543
2 votes
2 answers
167 views

ScheduledTask $timespec$ syntax

I want a task to run every five minutes from a specific start date to a specific end date. Documentation states syntax should be: {start, timespec, end}$\qquad$ run between dates start and end <...
user avatar
  • 9,128
1 vote
2 answers
249 views

Import files from a directory choose via Manipulate

I thought I write a super-simple program to import all (Excel)files from a directory a user can choose> ...
user avatar
4 votes
1 answer
151 views

My clock doesn't work

I have this code. When I click on the clock, my alarm don't activate and not work. I have tried with DynamicModule and nothing. I don't know where is the error. <...
user avatar
  • 543
10 votes
0 answers
146 views

'Visibility' of Dynamics in TabView with respect to SynchronousUpdating

Bug introduced in 11 or earlier and persisting through 12.0.0 CASE:4076464 Example 1 ...
user avatar
  • 132k
2 votes
1 answer
71 views

Hold Evaluation in a MenuView or TabView

Suppose I wish to create a MenuView where the evaluation of the rules is time consuming. How would I delay evaluation of the right-hand-side of the arguments to <...
user avatar
  • 2,058
3 votes
0 answers
117 views

Too many scheduled tasks (with parallelization)

I have a program that makes many http requests (gathering data from APIs), and computes on that data. Speed is a priority and using the most up to date data in the computations is a priority. ...
user avatar
  • 1,269
2 votes
1 answer
162 views

Call ParallelSubmit from inside a parallel kernel

I am scheduling myFun[x] to evaluate every couple of seconds in a parallel kernel with ParallelSubmit and Parallel`Developer`QueueRun[], where it sometimes triggers ...
user avatar
  • 831
16 votes
2 answers
468 views

Scheduling Optimization

I asked this question here 2 years ago. I didn't know this website at that time. I just realized I could ask it here. Here is the problem statement. Assume I have 20 trucks, $t_j$, $j=1...20$ and ...
user avatar
0 votes
0 answers
39 views

SQLConnection causes kernel hangs

This question is additional question to Maintaining SQLConnections In Mathematica 10.4.1.0 (64bit). ...
user avatar
  • 900
4 votes
0 answers
117 views

ScheduledTask DateObject pattern to evaluate at same time everyday

I would like to create a ScheduledTask that evaluates at the same time everyday. Such as, evaluate function at 1:00 am everyday. The "Daily" timespec in ScheduledTask doesn't allow me to control the ...
user avatar
  • 1,269
1 vote
1 answer
204 views

How to make Manipulate run automatically after evaluation?

How to make Manipulate run/play automatically after evaluation, i.e. without having to hit the play button (but still being able to use the pause/play button)? <...
user avatar
  • 23.2k
17 votes
2 answers
361 views

Can I trust URLSubmit?

Bug introduced in 11.2 or earlier and persists through V13.0.1 [CASE:4026293] confirmed Let's create 10 asynchronous requests which just check if the site is there. ...
user avatar
  • 132k
8 votes
1 answer
207 views

Dynamic triggered but renders the same content

Documentation bug introduced in V10 or eralier and persisting through V11.3 It is a documentation bug because the undocumented optimization method by FE makes major assumptions. The example is not ...
user avatar
  • 132k
9 votes
0 answers
103 views

Possible bug in Refresh[x, None] on the very first x = val

Bug introduced in 8 or earlier and persisting through 11.3 [CASE:3995912] From Refresh docs: Refresh[expr,None] ...
user avatar
  • 132k
7 votes
1 answer
143 views

FinishDynamic[] does not wait for display to finish

Bug introduced in 10.4 or earlier and persists through V11.2 [CASE:3993499] If your UI contains a couple of heavy/big elements, or one heavy and couple of slightly heavy, because delay accumulates ...
user avatar
  • 132k
5 votes
0 answers
77 views

Handling rendering delays gracefully

I moved the second issue to a separate topic: 162013 Please run the code sample As you can see there is a delay between the moment the calculation is finished and when the graphics is shown. And ...
user avatar
  • 132k
5 votes
1 answer
159 views

LocalSubmit and package functions

I want to use LocalSubmit to create continuous tasks that run in parallel. But it not works with functions from packages. For example: ...
user avatar
3 votes
1 answer
58 views

Manipulate requires two evaluations after revision

This Manipulate program below allows the user to enter points on a LocatorPane and then draws a line through the points. The <...
user avatar
  • 967
3 votes
1 answer
148 views

Initializing Manipulate without grey bar

I have a relatively long code inside Manipulate that computes an output depending on controls. Computation takes about a second, so I am using ...
user avatar
  • 4,135
3 votes
1 answer
89 views

SystemOpen inside a button waits until the end for being evaluated?

I am writting with the hope of getting some help when using "SystemOpen". Here is a simple example: ...
user avatar
  • 31
1 vote
1 answer
233 views

call function to trigger update to dynamic -- what's the right way

I want to create a plot using Dynamic. Ideally, I'd have some persistent, locally scoped state variables living in a Module; as ...
user avatar
1 vote
1 answer
95 views

DateTime Input Dialog in Mathematica

I am trying to create a DateTime input dialog that will return a DateTimeObject ...
user avatar
  • 921
11 votes
1 answer
172 views

Why is PaneSelector caching nested Dynamics and how to switch it off?

Bug introduced in V10.4 or earlier and persisting through V11.3 CASE:3875733, confirmed It seems that Dynamic content is somehow cached by ...
user avatar
  • 132k
7 votes
1 answer
1k views

Remove cell from evaluation queue without aborting evaluation?

Let's say that I queue a number of cells in evaluation, and each is set to run something that will take a relatively long time to finish. I realize midway through the queue that one of the commands is ...
user avatar
4 votes
1 answer
157 views

Dynamic scheduled task doesn't work [duplicate]

I have a list variable that I want to append new values from a normal distribution to after I click a button. It works in a simple case but not for the more complicated situation and I don't know why. ...
user avatar
  • 1,019
3 votes
0 answers
97 views

What is the Kernel waiting for after DialogInput is launched?

Bug introduced in 11.0 or earlier and persisting through 11.2 [...] I was able to reproduce the issue, and consequently, I filed a report with our development team [...] CASE:3805351 I find this ...
user avatar
  • 132k
12 votes
3 answers
310 views

CurrentValue and MousePosition do not respect Dynamic's options

Bug introduced in V10.4 or earlier and persists through V12.0 A support case with the identification [CASE:3726810] was created. [...] It does appear as though ...
user avatar
  • 132k
1 vote
0 answers
59 views

RemoveScheduledTask has some problem in Mathematica 11

I am using Mathematica 11 below is an simple example of RunScheduledTask copied from documentation. ...
user avatar
  • 15.6k
6 votes
3 answers
176 views

How to create a window which will close in a certain amount of time?

I'm currently making an interface in Mathematica and I'll need to bump a window out and then let it close itself in a certain amount of time. Here's an short example to illustrate the effect: ...
user avatar
  • 9,158
5 votes
1 answer
359 views

switch between automatic and manual updating

I have a plot with interactive controls. I'd like to give the user the option between having the plot automatically update (when the plot's parameters are changed with the slider) and having the ...
user avatar
  • 53
6 votes
0 answers
126 views

Finish(Asynchronous)Dynamic[]

I have a question deriving from a recent topic Synchronizing Dynamics with EventActions. tl;dr; How to authoritatively explain the influence of ...
user avatar
  • 132k
8 votes
1 answer
335 views

Cloud Deploying a Scheduled Task

cross-posted on the Wolfram Community forum I am trying to deploy a ScheduledTask that monitors the state of a google spread sheet every hour. I want the object to ...
user avatar
5 votes
1 answer
174 views

Synchronizing code in Dynamics with other procedures

I have huge code and some problem. I don't know how to make example. I'm afraid I can't make good SMALL example to demonstrate you the problem. So I'll try to explain. Maybe somebody know about such ...
user avatar
  • 61
6 votes
1 answer
275 views

Working with Dynamic: Synchronization with EventActions ( and other preemptive evaluations)

I would like to make a simple "game": Display a dialog with a random letter, if the same letter is pressed on the keyboard, the display changes into a string ...
user avatar
  • 7,097
2 votes
0 answers
65 views

How to check if and when a ScheduledTask is scheduled?

Apparently, on Mathematica $Version "10.4.1 for Microsoft Windows (64-bit) (April 11, 2016)" the functions ...
user avatar
  • 6,903
6 votes
2 answers
147 views

Abort an EventHandler?

How do I stop an EventHandler? I'm trying to allow the user unlimited inputs on the arrow keys UNTIL certain conditions are met, and then stop the ...
user avatar
5 votes
2 answers
97 views

Creating a warning before executing a function if not cancelled?

How could I create a warning dialog that executes a function if not cancelled after a delay ? Also I would like the time remaining before execution to be displayed and the dialog to be non blocking.
user avatar
  • 10.7k
10 votes
4 answers
489 views

Working with DynamicModule: ScheduledTasks with local variables

I have a question - is it possible to run ScheduleTask[] inside DynamicModule[]? What I have tried so far: ...
user avatar
  • 443
20 votes
2 answers
2k views

How to restart computation when kernels die?

When an important process needs to be kept alive, there are monitoring tools to restart them if they die (e.g. god tasks in ruby), in my case I have an overnight scraping task that I need to have done ...
user avatar
  • 30.3k