Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
35 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 ...
5
votes
1answer
48 views

IntervalSlider and updating function specification

IntervalSlider seems to ignore Dynamic's second argument: ...
1
vote
1answer
75 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....
4
votes
1answer
74 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 ...
10
votes
1answer
96 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 ...
4
votes
2answers
56 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 ...
1
vote
1answer
57 views

MouseOver and Speak

I am having an issue where Mouseover doesn't work with Speak and instead returns Null. All ...
2
votes
2answers
74 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 <...
1
vote
2answers
82 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> ...
4
votes
1answer
132 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. <...
10
votes
0answers
113 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 ...
2
votes
1answer
42 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 <...
3
votes
0answers
72 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. ...
1
vote
1answer
67 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 ...
14
votes
1answer
291 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 and all are at the port ...
0
votes
0answers
37 views

SQLConnection causes kernel hangs

This question is additional question to Maintaining SQLConnections In Mathematica 10.4.1.0 (64bit). ...
4
votes
0answers
75 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 ...
1
vote
1answer
61 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)? <...
12
votes
1answer
166 views

Can I trust URLSubmit?

Bug introduced in 11.2 or earlier and persists through V11.3 [CASE:4026293] confirmed Let's create 10 asynchronous requests which just check if the site is there. ...
8
votes
1answer
156 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 ...
9
votes
0answers
94 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] ...
7
votes
1answer
105 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 ...
5
votes
0answers
66 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 ...
4
votes
1answer
93 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: ...
2
votes
1answer
46 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 <...
3
votes
1answer
106 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 ...
3
votes
1answer
68 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: ...
1
vote
1answer
116 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 ...
1
vote
1answer
58 views

DateTime Input Dialog in Mathematica

I am trying to create a DateTime input dialog that will return a DateTimeObject ...
11
votes
1answer
146 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 ...
7
votes
1answer
261 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 ...
3
votes
1answer
131 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. ...
3
votes
0answers
85 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 ...
11
votes
3answers
173 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 ...
1
vote
0answers
55 views

RemoveScheduledTask has some problem in Mathematica 11

I am using Mathematica 11 below is an simple example of RunScheduledTask copied from documentation. ...
6
votes
3answers
131 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: ...
5
votes
1answer
235 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 ...
6
votes
0answers
103 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 ...
8
votes
1answer
236 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 ...
5
votes
1answer
131 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 ...
6
votes
1answer
201 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 ...
2
votes
0answers
44 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 ...
6
votes
2answers
130 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 ...
5
votes
2answers
90 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.
9
votes
4answers
382 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: ...
19
votes
2answers
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 ...
32
votes
4answers
875 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: ...
1
vote
1answer
72 views

Showing updating message in Dynamic with UpdateInterval

I am creating an interface which needs to repeat an operation every few seconds. The operation itself is expensive but faster than the update interval of the interface. I would like to have some ...
13
votes
2answers
246 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 ?
1
vote
1answer
128 views

How do I dynamically update “name” of Action Menu?

I have created an action menu that allows you to change the style of a cell. It works. However, I would like it to dynamically update the action menu "name". I can't get the name to refresh. ...