Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re:AnyEvent - sequence of async operations without recursion?

by bliako (Prior)
on Feb 10, 2021 at 22:35 UTC ( #11128200=note: print w/replies, xml ) Need Help??


in reply to AnyEvent - sequence of async operations without recursion?

no warnings 'recursion';

The above will turn "deep recursion" warnings off (and can be localised). After that Perl will happily recurse to exhaustion. I think the limit before complaining (and not bailing out) is 100. Obviously with your queue of 10 this limit is not reached.

Since you said that your jobs are not really asynchronous why not run them in a sequence?

Edit: removed use from the 1st line, thanks AnomalousMonk

Replies are listed 'Best First'.
Re^2: AnyEvent - sequence of async operations without recursion?
by ikegami (Pope) on Feb 11, 2021 at 06:34 UTC

    Yeah, it's 100 by default. That's on the low end of acceptable. I bump it to 1000 when I build perl (-DPERL_SUB_DEPTH_WARN=1000).

    The key is that it's just a warning to help debug and/or detect infinite recursion before Perl uses up your system's memory. Because Perl will happily recurse until you run out of memory.

    Seeking work! You can reach me at ikegami@adaelis.com

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11128200]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2021-04-20 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?