Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ketos ketos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • public_projects
  • ketosketos
  • Issues
  • #122

Closed
Open
Created Jul 19, 2021 by Fabio Frazao@fsfrazaoOwner

Add exeption handling to create_database function

The current implementation of the create_database function breaks if an exception is raised when it tries to load an audio segment or if it can't write it to the database.

This means that, if you have 10,000 segments and somewhere in the middle there's one single segment that raises an exception (because the audio file was corrupted, for example), the function exits there and the rest of the segments won't be computed or written to the database, even if they are perfectly fine.

It would be nice to add some exception handling to the for loop that loads and writes audio segments to the database. There could be an argument to control the desired behavior: halt when there's a problem or skip the problematic segment and continue to the next. The latter could even return a log of the segments (filename, start, end) that were skipped.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking