Questions tagged [cfthread]
41 questions
5
votes
3 answers
Get value of variables running in cfloop using cfthread join
Thanks for replying!! But I am still not able to do it. Error that I am getting is
"Element objGet1 is undefined in a Java object of type class coldfusion.runtime.VariableScope."
Below is my full code. I just want to dump the value of each thread…

Deepak Yadav
- 1,724
- 3
- 23
- 38
4
votes
1 answer
Using function arguments in a Coldfusion thread
How can I use function arguments in a Coldfusion thread?
I do not understand why I get the following error:
Element SOMEID is undefined in ARGUMENTS.
A simplified example of my code.
public any function createSomeEntity(required numeric someId) { …

Roman Kharitonov
- 131
- 1
- 9
4
votes
3 answers
ColdFusion : terminate CFTHREAD in separate request
I am using CFTHREAD in my ColdFusion application. From what I've read from Ben Nadel (https://www.bennadel.com/blog/2980-terminating-asynchronous-cfthreads-in-coldfusion.htm) ColdFusion only exposes and tracks threads in the current request. In my…

Phil
- 4,029
- 9
- 62
- 107
4
votes
3 answers
Is there any benefit to wrapping CFTHREAD around database inserts?
We have a few thousand catalogs with pages that are accessed up to a half a million times each day. At the end of every page hit, we insert some of the CGI variables into a database. If a form was submitted or a search was performed, we insert some…

Evik James
- 10,335
- 18
- 71
- 122
3
votes
3 answers
Cfcfhart within cfthread possible? how to get output?
I'm trying to improve the execution time of one of my reports which uses cfcharts to print graphs. The code itself is a loop of entities and for each entity I create a chart (it's a comparison report).
By doing this inline it takes almost a minute…

Bruno Faria
- 5,219
- 3
- 24
- 27
3
votes
1 answer
thread in script based component not working
When I comment out the thread related code below, the submission to the slack API works as expected. However, when I attempt to process the submission within a thread command, the submission never goes through.
Am I doing something wrong? Running in…

Brian FitzGerald
- 3,041
- 3
- 28
- 38
3
votes
1 answer
cfthread - how long can it run?
Using Railo, I am processing large video files using cfthread. After the file is uploaded, I call to process the file using ffmpeg (type="task" is Railo specific). For large files, this can take a while, and it looks like my…

Redtopia
- 4,947
- 7
- 45
- 68
3
votes
2 answers
CFTHREAD Executing Twice
I have a loop that calls a cfcomponent object.

Jeff Shain
- 767
- 3
- 9
- 21
3
votes
0 answers
Should I use CFTHREAD to slow down bot traffic?
We recently migrated our site from application.CFM to application.CFC. The CFM version could handle our excessive bot traffic, but our CFC version can't. We are trying to figure out why the CFC problem is. In the meantime, we are trying to limit bot…

Evik James
- 10,335
- 18
- 71
- 122
3
votes
1 answer
How to run multiple threads in ColdFusion
I am trying to run 3 threads of an http request in ColdFusion. This is an email system which will select 3 different campaigns and send there respective recipients at the same time.
But my following code only runs one thread and then drops off.
…

nasaa
- 2,701
- 8
- 47
- 76
3
votes
1 answer
Asynchronous HTTP request in Coldfusion
How do I do Asynchronous HTTP requests using CFHTTP tag?
I am looping over a Query result and send some data to a URL via HTTP post.
There are lots of records in the query so cfhttp takes lots of time.
Is it possible to send asynchronous HTTP…

Subbu
- 3,299
- 5
- 24
- 36
3
votes
1 answer
Is CFThread join necessary for background processes?
Background:
This is part of a scheduled job that retrieves data from an external site (the external site provides an API for retrieving the data via web service) and updates a database with new information. It is retrieving approximately 3,500 data…

Scott Jibben
- 2,229
- 1
- 14
- 22
2
votes
1 answer
Lucee/Adobe ColdFusion - Setting/getting information from thread{}
I'm working on creating a simple email server status page that calls two different CFCs.
The status page requirements:
Query a MariaDB database table via a CFC and return data from two fields: server_name (ie. MyServerName) & server_domain (ie.…

Grimdari
- 353
- 1
- 16
2
votes
2 answers
Process external HTTP request with CFTHREAD and return asynchronous response
I have build an API where an external server can post JSON data to our ColdFusion Server. The ColdFusion Server then processes this data (loops over arrays and inserts data into a database etc), and then responds to the external server that…

Jörgen Lundgren
- 273
- 1
- 13
2
votes
1 answer
Using cfthread inside cfloop results in random output
I have a routine in ColdFusion that loops over a list of application IDs. Inside that list, many things happen, including the generation and merging of PDF docs. This gets very slow so I took a look at what cfthread can do for me. The results are…
user5639765