-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report completion event from self hosted Companion #3862
Comments
Same here 😔 |
Hey @mifi @Murderlon , Is someone on this? We really need this sorted somehow. Is there a way to use a paying support service with the on-premise solution? Thanks, |
Hi. This was recently implemented in #3544 Did you try the code from the documentation: https://uppy.io/docs/companion/ under "Events"? I just tested with google drive and it works for me: const companionApp = companion.app(companionOptions)
const { companionEmitter: emitter } = companionApp
emitter.on('upload-start', ({ token }) => {
console.log('Upload started', token)
function onUploadEvent ({ action, payload }) {
if (action === 'success') {
emitter.off(token, onUploadEvent) // avoid listener leak
console.log('Upload finished', token, payload.url)
} else if (action === 'error') {
emitter.off(token, onUploadEvent) // avoid listener leak
console.error('Upload failed', payload)
}
}
emitter.on(token, onUploadEvent)
})
notice the logged "Upload started" and "Upload finished" if not, which version of companion are you running? |
@Mosharush are you on the latest version? |
Yes, I saw it's added to the app method but the type file does not align with it:
|
Oh, so it's just a typescript issue? Does it work with ts-ignore? |
* fix companion app type fixes transloadit#3862 * remove unnecessary ts-ignores * Revert "remove unnecessary ts-ignores" This reverts commit 76ee67d.
Our dream case suggested solutions:
Currently we are stuck as our websocket solution isn’t holding water due to our auto-scale solution we created for Companion on our servers.
What are we doing wrong? Is there something we missed?
The text was updated successfully, but these errors were encountered: