On 3/15/2011 2:50 PM, Vincent Ladeuil wrote:
> Public bug reported:
>
> Now that we have a time quota check, we try to kill the imports that
> exceed their quota.
>
> It turns out nexuiz-data couldn't be killed and we kept trying.
>
> I couldn't kill the import either with -15 (SIGTERM hoping to get a
> traceback) so I had to -9 (SIGKILL) it manually.
>
> The mass_import script should probably do the same.
>
> I don't have a good answer for the failure recording in that case since
> the process won't produce a meaning full output so we probably should
> rely on log analysis there.
If it is in swap death, or dying inside a C function, then SIGTERM and
SIGINT won't work (AIUI). If we know what function it was dying in (and
it is one of ours), we could add a call to the Python "check if there
are pending signals" function. With some tricks to watch out for GIL issues.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 3/15/2011 2:50 PM, Vincent Ladeuil wrote:
> Public bug reported:
>
> Now that we have a time quota check, we try to kill the imports that
> exceed their quota.
>
> It turns out nexuiz-data couldn't be killed and we kept trying.
>
> I couldn't kill the import either with -15 (SIGTERM hoping to get a
> traceback) so I had to -9 (SIGKILL) it manually.
>
> The mass_import script should probably do the same.
>
> I don't have a good answer for the failure recording in that case since
> the process won't produce a meaning full output so we probably should
> rely on log analysis there.
If it is in swap death, or dying inside a C function, then SIGTERM and
SIGINT won't work (AIUI). If we know what function it was dying in (and
it is one of ours), we could add a call to the Python "check if there
are pending signals" function. With some tricks to watch out for GIL issues.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
/fqUACgkQJdeBCY SNAANzOgCfeCwCg 6gwYIQfoDC4uTIV n+t4 tUFFHzhov4y4kAy IZ
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk1
YpgAn35QdL1wwtz
=6gUI
-----END PGP SIGNATURE-----