papermark icon indicating copy to clipboard operation
papermark copied to clipboard

Trigger v3 migrations

Open mfts opened this issue 1 year ago • 3 comments

mfts avatar Aug 27 '24 10:08 mfts

any update on this?

harikrish-s avatar Oct 04 '24 18:10 harikrish-s

I took about half my day playing around with this repo. At the very end, I got to this bit of code and the message led me to believe that your trigger.dev setup might have more too it outside the repo. Specifically the comment "trigger document uploaded event to trigger convert-pdf-to-image job"

      if (type === "pdf") {
        // trigger document uploaded event to trigger convert-pdf-to-image job
        await client.sendEvent({
          id: document.versions[0].id, // unique eventId for the run
          name: "document.uploaded",
          payload: {
            documentVersionId: document.versions[0].id,
            teamId: teamId,
            documentId: document.id,
          },
        });

the sending of this event seems to be "V2" format of trigger.dev. It was pretty rough seeing the same error over and over again, Error: Missing API key and checking if my key for trigger.dev was inputed right.

Come to find out, there is no longer support for V2 trigger.dev.

I took some time to review the docs on how to convert from V2 to v3, but from what I can tell, there is not a service being used here, this just seems to be kicking off a job somewhere to "convert-pdf-to-image", and I lost the will to continue on after my wife yelled at me for ignoring her on a Friday night.

I understand this is open source code, and as such I made an honest attempted to fix it. Without this migration, it seems all slides, pptx, pdf, decks are not supported for upload if you host it your self. Seems like that might be something useful to know before letting someone go down the rabbit hole to set up. Down bad, going to go put a data room in notion and move on with my life.

duelinggalois avatar Oct 12 '24 03:10 duelinggalois

Hi, my on-prem install stopped working together after triggerv2 shut down! Any updates here?

bndrgroup avatar Apr 03 '25 15:04 bndrgroup