Skip to content
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

feat: when mediaconvert job fails log message #78

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oshinongit
Copy link
Contributor

@oshinongit oshinongit commented Sep 30, 2024

It would be good to have mediaconvert error messages be visible in the console.

@oshinongit oshinongit marked this pull request as ready for review September 30, 2024 12:02
@oshinongit oshinongit marked this pull request as draft September 30, 2024 12:24
@oshinongit
Copy link
Contributor Author

Should rethink when to check for job error. Current suggestion only considers during job creation.

@oshinongit oshinongit force-pushed the feat-log-transcode-errors branch 5 times, most recently from 7289763 to db0b55f Compare October 2, 2024 13:04
Copy link
Contributor

@grusell grusell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, added some comments about cosmetic issues.

logger.error(`No Job from create response ${inputFilename}`);
return '';
}
const s3Status = await this.loopGetJobStatusUntilFinished(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable could be better, ie mediaConvertJobStatus or so.

}
}

async delay_ms(ms: number): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this function is pretty generic and not really tied to the aws-pipeline, it could make sense to move it somewhere else, utils.ts or something. Also for consistency the name should be delayMs or just delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants