I recently discovered that there are shortcomings with the perl interface,
regarding how objects are constructed and the messages that are sent to the
server: e.g. Beanstalk::Job objects are constructed via the results from a
_peek() call, which means that the buried and reserved attributes are not
properly set. A 'stats-job' command is necessary to determine these
values.
If I were rewriting this code, I would use Moose and lazily-built
attributes which executed this command, but I'm not sure if there would
be universal support for porting the perl interface to using Moose. (There
is zero cost if one's application already uses Moose, but otherwise it
could impose a startup penalty that is not desired.)
--
"Martyrdom has always been a proof of the intensity,
never of the correctness, of a belief." - Arthur Schnitzler
. . . . .
Karen Etheridge, [email protected] GCS C+++$ USL+++$ P+++$ w--- M++
http://etheridge.ca/ PS++ PE-- b++ DI++++ e++ h(-)
--
You received this message because you are subscribed to the Google Groups
"beanstalk-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/beanstalk-talk?hl=en.