cfcomponent オブジェクトを呼び出すループがあります。
<cfset queue_list = "1,2,3">
<cfloop list="#queue_list#" index="z">
<cfset args = StructNew()>
<cfset args.group_num = z>
<cfset args.client_id = 1>
<cfset processdownloads = downloader.ProcessDownload(argumentCollection=args)>
</cfloop>
コンポーネントには次の機能があります。
<cffunction name="ProcessDownload" access="public" output="false">
<cfargument name="group_num" type="numeric" required="yes">
<cfargument name="client_id" type="numeric" required="yes">
<cfset variables = arguments>
<cfthread action="RUN" name="download_#variables.client_id#_#variables.group_num#" priority="high">
<cffile action="WRITE" file="#expandpath('download\download_in_process\')##variables.group_num#.json" output="#variables.group_num#">
</cfthread>
</cffunction>
実行すると、次のエラーが表示されます。
cfthread タグの属性検証エラー。DOWNLOAD_4003_3 という名前のスレッドを作成できませんでした。スレッド名はページ内で一意でなければなりません。
エラーは 29 行目で発生しました。
理由はわかりませんが、2回実行されているようです。一意のスレッド名で新しいスレッドを生成して、トレッド名の競合を回避するべきではありませんか?