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
40 votes
4 answers
1k views

What is the difference between Dynamic[x] and Dynamic[ h[x] ] for DynamicModule variables?

Bug introduced in 9.0 or earlier and persisting through 12.0 In 11.3 it is even worse. An example from the accepted answer with a Slider is now broken too: ...
Kuba's user avatar
  • 137k
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 ...
M.R.'s user avatar
  • 31.5k
18 votes
3 answers
461 views

How to track part of symbol or how to symbolize parts of symbol without copying data?

Let's create simple function: SetAttributes[h, HoldFirst]; h[data_] := Dynamic[Grid[data], TrackedSymbols :> {data}] test = RandomReal[1, {2, 2}]; h[test] ...
Kuba's user avatar
  • 137k
17 votes
2 answers
404 views

Can I trust URLSubmit?

Bug introduced in 11.2 or earlier and solved in V13.2 [CASE:4026293] confirmed Let's create 10 asynchronous requests which just check if the site is there. ...
Kuba's user avatar
  • 137k
16 votes
2 answers
554 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 ...
OkkesDulgerci's user avatar
16 votes
1 answer
1k views

How to save the result in the Notebook (.nb) and shut down the computer when the calculation is done

I have a notebook(.nb) which its calculation is time-consuming and long. I can not observe it if the calculation is done or not. Therefore, I want to : Save the results in the notebook(.nb) ( I do ...
Shellp's user avatar
  • 523
14 votes
4 answers
605 views

How to make a movie from a complex demonstration?

I have a complex Manipulate-based demonstration containing a few sliders and a Setterbar. I would like to make a movie out of it, avi, or whatever else. The ...
Alexei Boulbitch's user avatar
14 votes
3 answers
1k views

Interdependent controls in Manipulate [duplicate]

Possible Duplicate: How to create interrelated sliders? locking a value when manipulating variables I need to create a Manipulate with two control parameters ...
Simon Woods's user avatar
14 votes
2 answers
401 views

How can I run a cron scheduled task in Mathematica?

Mathematica doesn't have a built-in Cron scheduler. How can I use scheduled tasks in order to implement one ?
faysou's user avatar
  • 11k
14 votes
2 answers
463 views

Dynamic after Kernel restart/quit:

Bug introduced in V10.1 or earlier and persists through V11.2 [...] The behavior of Dynamics when the kernel quits has never been well defined or documented, ...
Kuba's user avatar
  • 137k
14 votes
1 answer
394 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: ...
Kuba's user avatar
  • 137k
13 votes
2 answers
408 views

Working with DynamicModule: Tracking the progress of Initialization

How to track Initialization step by step? Any tricky solution is ok. One condition, x should be ...
Kuba's user avatar
  • 137k
12 votes
3 answers
334 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 ...
Kuba's user avatar
  • 137k
11 votes
1 answer
956 views

Wait / sleep miliseconds

Is there any way to make Mathematica stop for some miliseconds? I know about the Pause[] but it seems it only works with seconds.
José D.'s user avatar
  • 1,135
11 votes
1 answer
183 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 ...
Kuba's user avatar
  • 137k
10 votes
4 answers
521 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: ...
michelson's user avatar
  • 443
10 votes
1 answer
115 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 ...
Kuba's user avatar
  • 137k
10 votes
0 answers
150 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 ...
Kuba's user avatar
  • 137k
10 votes
0 answers
1k views

Does a running evaluation continue after the PC wakes from sleep mode?

Are there any issues with running a process on Mathematica, putting the computer to sleep, and then waking the computer sometime later? It seems to work just fine on my test process (appending data ...
JeffDror's user avatar
  • 1,880
9 votes
1 answer
230 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 ...
Kuba's user avatar
  • 137k
9 votes
0 answers
106 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] ...
Kuba's user avatar
  • 137k
8 votes
3 answers
738 views

Keep kernel running for execution of scheduled task

How can I keep a kernel running until all scheduled tasks have completed? For example upon running the following script bazinga.m: ...
sakra's user avatar
  • 5,120
8 votes
1 answer
336 views

Why can't I abort main evaluation from ScheduledTasks (Service Link)?

FrontEndExecute[FrontEndToken["EvaluatorAbort"]] is equivalent of the menu item: Evaluation >> Abort. It works ...
Kuba's user avatar
  • 137k
8 votes
1 answer
371 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 ...
Lame-Ov2.0's user avatar
7 votes
1 answer
510 views

Is it possible to update Dynamic objects even when they are off screen?

I am using Dynamic and DynamicModule to display graphics/statistics generated from a long-running set of parallel tasks. The ...
berniethejet's user avatar
  • 1,417
7 votes
1 answer
2k 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 ...
Michael L.'s user avatar
7 votes
1 answer
160 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 ...
Kuba's user avatar
  • 137k
6 votes
2 answers
238 views

Showing "updating..." message while Manipulate is re-evaluating

Is it possible to show a fixed text such as "updating..." instead of the last result shown, when Manipulate is re-evaluating an expression (in a slow evaluation ...
Vicent's user avatar
  • 1,101
6 votes
3 answers
186 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: ...
Wjx's user avatar
  • 9,568
6 votes
1 answer
309 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 ...
Yi Wang's user avatar
  • 7,347
6 votes
2 answers
162 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 ...
incredi_imp's user avatar
6 votes
0 answers
143 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 ...
Kuba's user avatar
  • 137k
5 votes
3 answers
406 views

Best way to represent a complex time schedule?

What would be the best way to represent a complex schedule in Mathematica ? For example a representation of the plain words schedule: "From Monday to Friday, from 8 am to 12pm and from 1pm to 4pm", ...
faysou's user avatar
  • 11k
5 votes
1 answer
395 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 ...
nibudd's user avatar
  • 53
5 votes
2 answers
92 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 ...
E Crane's user avatar
  • 145
5 votes
1 answer
186 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: ...
Kirill Belov's user avatar
5 votes
1 answer
183 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 ...
Vasily's user avatar
  • 61
5 votes
2 answers
324 views

How can I run a list of Tasks serially?

I have a list of ScheduledTask's to run in sequence one at a time. How can I set these to run in order so that the next one starts automatically after the previous one finishes?
M.R.'s user avatar
  • 31.5k
5 votes
1 answer
68 views

IntervalSlider and updating function specification

IntervalSlider seems to ignore Dynamic's second argument: ...
Kuba's user avatar
  • 137k
5 votes
2 answers
103 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.
faysou's user avatar
  • 11k
5 votes
1 answer
127 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 ...
Stefan Gillessen's user avatar
5 votes
0 answers
84 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 ...
Kuba's user avatar
  • 137k
4 votes
1 answer
395 views

Evaluation order of Button's action

It looks like a basic issue but I haven't found an answer anywhere. Please tell me why the behavior (after clicking) of this Button: ...
Kuba's user avatar
  • 137k
4 votes
2 answers
185 views

Manipulate in modal mode

It is sometimes convenient to use Manipulate to set up global values which are to be used in the rest of the notebook. In such cases one can select and run the ...
LiMa's user avatar
  • 41
4 votes
1 answer
155 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. <...
Andres's user avatar
  • 543
4 votes
1 answer
160 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. ...
Sean Lynch's user avatar
  • 1,079
4 votes
0 answers
123 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 ...
Ray Troy's user avatar
  • 1,299
3 votes
2 answers
98 views

MouseOver and Speak

I am having an issue where Mouseover doesn't work with Speak and instead returns Null. All ...
Andres's user avatar
  • 543
3 votes
1 answer
428 views

Dynamic inside Button

This bit of code runs a little animation of a stochastic process: ...
zab's user avatar
  • 275
3 votes
1 answer
164 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 ...
Stitch's user avatar
  • 4,225