kue
kue copied to clipboard
place indexing before callback invoked
fixes #886
Invoking the callback before the function opens to door for a race condition when searching. Movin when the index is called fixes this.
Of course this comes with a cost, however, if the user has opted into searching then making sure it works and all jobs are searchable when the callback is invoked is worth it.