<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I want to develop a video conversion service. My idea is to offer a
REST api and save all the conversion request in a database to track the
state of each process (pending, doing, done, error, etc.)<br>
<br>
I want to use this database table as a persistent queue and a twisted
daemon that takes its task from this table. This daemon has to take the
task, update the state of the task and do the work.<br>
<br>
How can I subscribe the twisted daemon to the database inserts?<br>
<br>
Is the thread pool a good approach to this problem?<br>
<br>
Do you know a more simple solution to this problem?<br>
<br>
Thank you.<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:RotisSemiSans;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EstiloCorreo18
        {mso-style-type:personal;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EstiloCorreo19
        {mso-style-type:personal-reply;
        font-family:Verdana;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<div>
<p class="MsoNormal"><font color="green" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: green;">Daniel de
la Cuesta Navarrete</span></font><font color="blue"><span
 style="color: blue;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="#006600" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: rgb(0, 102, 0);">Administrativo
&Aacute;rea
de Innovaci&oacute;n y Tecnolog&iacute;a</span></font><font color="blue"><span
 style="color: blue;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: black;">Fundaci&oacute;n
IAVANTE</span></font><font color="blue"><span style="color: blue;"></span></font></p>
<p class="MsoNormal"><font color="black" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: black;">Telf.:
951 01 53 00 </span></font><font color="navy" face="Verdana" size="2"><span
 color:navy="">-</span></font><font color="black" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: black;"> Fax: 951
01 53 01</span></font><font color="blue"><span style="color: blue;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="gray" face="Verdana" size="2"><span
 10.0pt;font-family:verdana;color:gray=""><a
 href="http://www.iavante.es/" title="http://www.iavante.es/"><span
 style="text-decoration: none;"><span title="http://www.iavante.es/">www.iavante.es</span></span></a></span></font></p>
<p style="line-height: 150%;"><font color="#999999" size="1"><span
 style="font-size: 8pt; line-height: 150%; font-family: Verdana;">Este
correo electr&oacute;nico y, en su caso, cualquier fichero anexo, contiene
informaci&oacute;n
confidencial exclusivamente dirigida a su(s) destinatario(s).
</span></font><font color="#999999" face="Verdana" size="1"><span
 style="font-size: 8pt; line-height: 150%; font-family: Verdana; color: rgb(153, 153, 153);"
 lang="EN-GB">Toda copia o divulgaci&oacute;n
deber&aacute; ser autorizada por IAVANTE.</span></font><font
 face="RotisSemiSans" size="1"><span
 font-family:rotissemisans;color:gray="" lang="EN-GB"><br>
</span></font><font color="#999999" face="Verdana" size="1"><span
 style="font-size: 8pt; line-height: 150%; font-family: Verdana;">This
e-mail and any attachments are confidential and exclusively directed to
its
adressee(s). Any copy or distribution will have to be authorized by
IAVANTE.</span></font><span lang="EN-GB"></span></p>
</div>
</div>
</body>
</html>