Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Background task - how to use request.add_finished_callback or tgext.asyncjob ?

Received: by 10.59.7.234 with SMTP id df10mr2198798ved.23.1349424750173;
        Fri, 05 Oct 2012 01:12:30 -0700 (PDT)
X-BeenThere: turbogears@googlegroups.com
Received: by 10.220.226.7 with SMTP id iu7ls1148785vcb.6.gmail; Fri, 05 Oct
 2012 01:12:25 -0700 (PDT)
Received: by 10.52.93.132 with SMTP id cu4mr1592868vdb.14.1349424745891;
        Fri, 05 Oct 2012 01:12:25 -0700 (PDT)
Date: Fri, 5 Oct 2012 01:12:25 -0700 (PDT)
From: Juraj Variny <rin...@gmail.com>
To: turbogears@googlegroups.com
Message-Id: <7e1f6b1b-7aa7-41d2-a873-59594b028eb7@googlegroups.com>
In-Reply-To: <CAJfq2JF5WN3OvC5Y1B0vkH30F0eDSbib1D9ETubTtBR5X3tXBQ@mail.gmail.com>
References: <31450d58-3042-4446-9759-e16eeb547520@googlegroups.com>
 <CAJfq2JF5WN3OvC5Y1B0vkH30F0eDSbib1D9ETubTtBR5X3tXBQ@mail.gmail.com>
Subject: Re: [TurboGears] Background task - how to use
 request.add_finished_callback or tgext.asyncjob ?
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_455_18082834.1349424745016"

------=_Part_455_18082834.1349424745016
Content-Type: multipart/alternative; 
	boundary="----=_Part_456_15705019.1349424745016"

------=_Part_456_15705019.1349424745016
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Thanks! I did not know about TurboMail.

Juraj

D=C5=88a =C5=A1tvrtok, 4. okt=C3=B3bra 2012 15:39:56 UTC+2 Alessandro Molin=
a nap=C3=ADsal(-a):
>
> The TurboMail package provides asynchronous email sending through a queue=
.=20
> You can of course perform the same by using tgext.asyncjob, the=20
> documentation for asyncjobs is available on the asyncjob page itself:=20
> http://pypi.python.org/pypi/tgext.asyncjob=20
>
> Bests,=20
> Alessandro=20
>
> On Thu, Oct 4, 2012 at 3:10 PM, Juraj Variny <rin...@gmail.com<javascript=
:>>=20
> wrote:=20
> > Hi, I need to send notification email without user having to wait for=
=20
> the=20
> > sending. Tried to call request.add_finished_callback(function) from=20
> > controller as per pylons docs but I got AttributeError:=20
> > add_finished_callback . Alternatively, I was thinking about using=20
> > tgext.asyncjob but there is no mention at all in 2.2 docs. What/how=20
> should I=20
> > use?=20
> >=20
> > Juraj=20
> >=20
> > --=20
> > You received this message because you are subscribed to the Google=20
> Groups=20
> > "TurboGears" group.=20
> > To view this discussion on the web visit=20
> > https://groups.google.com/d/msg/turbogears/-/oUl_um26JZsJ.=20
> > To post to this group, send email to turbo...@googlegroups.com<javascri=
pt:>.=20
>
> > To unsubscribe from this group, send email to=20
> > turbogears+...@googlegroups.com <javascript:>.=20
> > For more options, visit this group at=20
> > http://groups.google.com/group/turbogears?hl=3Den.=20
>

------=_Part_456_15705019.1349424745016
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Thanks! I did not know about TurboMail.<br><br>Juraj<br><br>D=C5=88a =C5=A1=
tvrtok, 4. okt=C3=B3bra 2012 15:39:56 UTC+2 Alessandro Molina nap=C3=ADsal(=
-a):<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex=
;border-left: 1px #ccc solid;padding-left: 1ex;">The TurboMail package prov=
ides asynchronous email sending through a queue.
<br>You can of course perform the same by using tgext.asyncjob, the
<br>documentation for asyncjobs is available on the asyncjob page itself:
<br><a href=3D"http://pypi.python.org/pypi/tgext.asyncjob" target=3D"_blank=
">http://pypi.python.org/pypi/<wbr>tgext.asyncjob</a>
<br>
<br>Bests,
<br>Alessandro
<br>
<br>On Thu, Oct 4, 2012 at 3:10 PM, Juraj Variny &lt;<a href=3D"javascript:=
" target=3D"_blank" gdf-obfuscated-mailto=3D"ovJ0_k6MDVoJ">rin...@gmail.com=
</a>&gt; wrote:
<br>&gt; Hi, I need to send notification email without user having to wait =
for the
<br>&gt; sending. Tried to call request.add_finished_callback(<wbr>function=
) from
<br>&gt; controller as per pylons docs but I got AttributeError:
<br>&gt; add_finished_callback . Alternatively, I was thinking about using
<br>&gt; tgext.asyncjob but there is no mention at all in 2.2 docs. What/ho=
w should I
<br>&gt; use?
<br>&gt;
<br>&gt; Juraj
<br>&gt;
<br>&gt; --
<br>&gt; You received this message because you are subscribed to the Google=
 Groups
<br>&gt; "TurboGears" group.
<br>&gt; To view this discussion on the web visit
<br>&gt; <a href=3D"https://groups.google.com/d/msg/turbogears/-/oUl_um26JZ=
sJ" target=3D"_blank">https://groups.google.com/d/<wbr>msg/turbogears/-/oUl=
_um26JZsJ</a>.
<br>&gt; To post to this group, send email to <a href=3D"javascript:" targe=
t=3D"_blank" gdf-obfuscated-mailto=3D"ovJ0_k6MDVoJ">turbo...@googlegroups.c=
om</a>.
<br>&gt; To unsubscribe from this group, send email to
<br>&gt; <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D=
"ovJ0_k6MDVoJ">turbogears+...@<wbr>googlegroups.com</a>.
<br>&gt; For more options, visit this group at
<br>&gt; <a href=3D"http://groups.google.com/group/turbogears?hl=3Den" targ=
et=3D"_blank">http://groups.google.com/<wbr>group/turbogears?hl=3Den</a>.
<br></blockquote>
------=_Part_456_15705019.1349424745016--

------=_Part_455_18082834.1349424745016--