11 votes
Accepted

Can I trust URLSubmit?

Bug confirmed: [...] The source of the issue unknown to us at this point; however, it seems that all the request are submitted, yet tasks finishes prematurely, before getting the status code. [...] ...
Kuba's user avatar
  • 137k
10 votes

Can I trust URLSubmit?

This is indeed a racing condition due to TaskObject is created from AsynchronousTaskObject with default value to ...
Pavel Perikov's user avatar
10 votes
Accepted

Simple way to monitor a multiple URLDownloadSubmit calls?

Here is an example of how to build a download manager. We start by defining a function that uses URLDownloadSubmit to initiate a download: ...
C. E.'s user avatar
  • 70.6k
6 votes

LibraryLink: Asynchronous Examples

In Mathematica version 11.0 everything you need to know can be found in SystemFiles/Links/LibraryLink/Examples.m There, you find how you can call such a library ...
halirutan's user avatar
  • 113k
6 votes

Simple way to monitor a multiple URLDownloadSubmit calls?

Here's another way to do this, based on extracting the "File" handler key ...
b3m2a1's user avatar
  • 46.9k
5 votes

Simple way to monitor a multiple URLDownloadSubmit calls?

You may use the HandlerFunctions option of URLDownloadSubmit to track a counter updated in ...
Edmund's user avatar
  • 42.3k
4 votes
Accepted

ProcessObject loses connection to StandardOuput

The main problem seems to be that you need to take into account that the subprocess you start needs some time until it is ready to write. So in many cases just waiting a bit will solve your issue, e.g....
Albert Retey's user avatar
  • 23.6k
4 votes

How to monitor multiple async image downloads?

What I would do is run URLDownloadSubmit once on each URL that you want to download. That will make all those files start to download asynchronously in the ...
C. E.'s user avatar
  • 70.6k
3 votes

How to monitor multiple async image downloads?

Does something like this work for you? ...
Carl Woll's user avatar
  • 131k
3 votes
Accepted

Problem with file locking

There is a problem in Version 13.0 with file locking in local tasks. BUT: WithLock is HoldAll. You are not specifying a lock file, but a lock variable named "lok". Use With to force the ...
Roman's user avatar
  • 516
3 votes
Accepted

SessionSubmit with ScheduledTask

I ended up moving the days into the expression to be evaluated to act as a filter in a daily evaluation. ...
Jean-Pierre's user avatar
  • 5,197
2 votes

Does SessionSubmit[ScheduledTask[expr,spec]] create a separate thread?

Ok. It learned that SessionSubmit acts like an interruption for the main loop (like in low level languages like C), as well as some other interruptions from the Socket objects and etc. Scheduled tasks ...
Kirill Vasin's user avatar
  • 1,245
2 votes
Accepted

TaskWait, SocketObject, and WolframScript

How can I create this socket through WolframScript and keep it running until the script is closed [...]? For the server I am using I have this and it seems to do its job well. ...
Kuba's user avatar
  • 137k
2 votes

Simple way to monitor a multiple URLDownloadSubmit calls?

Here I create a different list of asynchronous tasks , but should be the same with your downloads. ...
rhermans's user avatar
  • 36.5k
2 votes

Batch Loading of Mathematica Packages and Issues with Autoloading

I have tried loading the core package file into the kernel, but the kernel exits as soon as the script file is loaded, whereas I need it to stay open to continue to service the ScheduledTasks. I ...
Joel Klein's user avatar
  • 5,225

Only top scored, non community-wiki answers of a minimum length are eligible