async icon indicating copy to clipboard operation
async copied to clipboard

calling async with in async

Open rahul23134 opened this issue 15 years ago • 4 comments

We are having an issue while running a async.series with in async.series ,

e..g we are having 13 document and for each document want to run check existence or some other task (for second async ).

So we are making 10 doucment async then on completion of these ten docuement making async of other three. and for each document calling other async for checking .

While doing this it stoped after 11 docuement .

Can u suggest what need to take care while running async within async.

rahul23134 avatar Oct 24 '11 07:10 rahul23134

Most probably you missed a callback argument in one of your functions. Maybe the function that process the 11 document has not callback defined, and is calling the parent callback, and stopping all the work.

nicogranelli avatar Nov 01 '11 07:11 nicogranelli

Parent is calling the 11 th callback... , Parent async is processing 10 document at time . and child async is processing 3 docs. actually my program is very big and of company so can't post it here. and in separate test experiment it worked.

rahul23134 avatar Nov 02 '11 05:11 rahul23134

you can't reproduce it in isolation? I understand you can't post the code here (i was about to ask for it :) ), but if can't isolate the error is difficult.

Another thing I saw when I started using this library is that if any of the functions don't call the callback for any reason, the work is stopped without warning. Any ajax call you make inside the tasks array (the functions that you pass) must handle both success and error, and in all cases call callback with the appropriated parameters

nicogranelli avatar Nov 02 '11 18:11 nicogranelli

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a temporary error. The following address(es) deferred:

[email protected] Domain alizweb.com has exceeded the max emails per hour (130/120 (108%)) allowed. Message will be reattempted later

------- This is a copy of the message, including all the headers. ------ Received: from github-smtp2-ext8.iad.github.net ([192.30.252.199]:45032 helo=github-smtp2b-ext-cp1-prd.iad.github.net) by web107.webhotelli.fi with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from [email protected]) id 1WTaNH-0003bu-Na for [email protected]; Fri, 28 Mar 2014 19:15:24 +0200 Date: Fri, 28 Mar 2014 10:15:22 -0700 From: Caolan McMahon [email protected] Reply-To: caolan/async [email protected] To: caolan/async [email protected] Message-ID: caolan/async/issue/62/issue_event/[email protected] In-Reply-To: caolan/async/issues/[email protected] References: caolan/async/issues/[email protected] Subject: Re: [async] calling async with in async (#62) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5335ae2aab727_31c83f98459592b0965f6"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Recipient: alizbazar List-ID: caolan/async <async.caolan.github.com> List-Archive: https://github.com/caolan/async List-Post: mailto:[email protected] List-Unsubscribe: mailto:unsub+i-2031036-8c0d5f47b82db17bc95839c77e7a2b9891f2d946-736771@reply.github.com, https://github.com/notifications/unsubscribe/736771__eyJzY29wZSI6Ik5ld3NpZXM6TXV0ZSIsImV4cGlyZXMiOjE3MTE2NDYxMjIsImRhdGEiOnsiaWQiOjI4NzgzMTU1fX0=--9bc950503030593e028650915ab46b4606769017 X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: [email protected]

----==_mimepart_5335ae2aab727_31c83f98459592b0965f6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #62.


Reply to this email directly or view it on GitHub: https://github.com/caolan/async/issues/62 ----==_mimepart_5335ae2aab727_31c83f98459592b0965f6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #62.

—
Reply to this email directly or view it on GitHub.

----==_mimepart_5335ae2aab727_31c83f98459592b0965f6--

alizbazar avatar Mar 28 '14 17:03 alizbazar