tslittle / tiffanymaster

0 stars 0 forks source link

Make sure queue processes fully #40

Closed tslittle closed 3 years ago

tslittle commented 3 years ago

Queue created, but getting this error when trying to spool:

29

tslittle commented 3 years ago

The records are spooled when they're sent to the VANDELAY_UPLOAD_PATH, which talks to WWW/Vandelay.pm and sub spool_marc.

tslittle commented 3 years ago

Fixed the spooling issue. It was this: https://bugs.launchpad.net/evergreen/+bug/1855199

I created the directory that Galen recommended, set the perms, and restarted the server/Evergreen. Spooling works now. The issue I'm having now is this: https://bugs.launchpad.net/evergreen/+bug/1925657

I get that same error in cataloging vandelay, so I dunno what's up or if it's just me. But the purchase order IS created, so are the lineitems! HUGE HURDLE.

The error that I'm getting is in upload.ts at line 511, which is this:

const method =open-ils.acq.process_upload_records`;

    return new Promise((resolve, reject) => {
        this.net.request(
            'open-ils.acq', method,
            this.auth.token(), this.sessionKey, args
        ).subscribe(
            tracker => {
                const e = this.evt.parse(tracker);
                if (e) { console.error(e); return reject(); }`
tslittle commented 3 years ago

It's not doing the bib matching because I'm not actually feeding it the "vandelay" args like import_no_match etc. Check out Order.pm around line 369.

tslittle commented 3 years ago

So following through the different called perlmods, it needs various vandelay info that are all supposed to have been passed in the $vandelay variable. So it looks like the way import.ts is doing that is through the ImportOptions, so I updated the upload.ts file to follow suit. I also added match_set and bib_source (which weren't in import.ts) because the Perlmods seem to call for those as it walks through various ones.

tslittle commented 3 years ago

I can probably completely strip the ImportRecords and ImportRecordsQueue out of upload.ts, but I haven't been brave enough to pull the trigger yet.

tslittle commented 3 years ago

I got it!!!!!

The logs were showing that it was failing when it was trying to create the vbqr, and it finally occurred to me that I had a matchset created but there were no arguments in it. Once I put some in, it passed entirely through and updated the lineitems appropriately. Yaaaaaay!!!!!!!!!!!!!