Extension architecture help required

Gervase Markham gerv at mozilla.org
Tue May 8 11:39:13 UTC 2012


On 07/05/12 23:12, Max Kanat-Alexander wrote:
>     Yeah, what Byron says sounds good. Also, another option would be to
> add a hook to Bugzilla::DB::bz_commit_transaction. You could store
> things in $self in the extension during bug_end_of_update and trigger
> them when the transaction was committed. $self in an extension is an
> object that's re-created for every page call, so you're fairly safe there.

In the end, I just checked for a timestamp mismatch in the job itself
and called $job->declined() if one occurred. That reschedules it after 5
minutes.

Gerv

_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list