Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Can I have a Perl script, initiated from a browser, fork itself, and not wait for the child to end?

by etj (Deacon)
on Apr 10, 2022 at 23:02 UTC ( [id://11142899] : note . print w/replies, xml ) Need Help??


in reply to Re: Can I have a Perl script, initiated from a browser, fork itself, and not wait for the child to end?
in thread Can I have a Perl script, initiated from a browser, fork itself, and not wait for the child to end?

Is this not reinventing part of Minion?

Replies are listed 'Best First'.
Re^3: Can I have a Perl script, initiated from a browser, fork itself, and not wait for the child to end?
by haukex (Archbishop) on Apr 11, 2022 at 05:37 UTC
    Is this not reinventing part of Minion?

    Depends on which part you mean. Minion is a good suggestion, but it also depends on the OP's requirements - if it's just a single task, then I think my code is good enough, but if OP needs to run more subprocesses then Minion's features would certainly be an advantage. However, AFAICT Minion doesn't support EventSource, which was a major point of my post.

    Edit: Minor clarification.