Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Update version to v0.7.1 and add release notes
Murtaza Nasir06c7a7a99072
diff --git a/VERSION b/VERSIONindex 8b20e485..63f2359f 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-v0.7.0+v0.7.1diff --git a/docs/advanced/job-queue-system.md b/docs/advanced/job-queue-system.mdindex 9f78a073..8c8a6a94 100644--- a/docs/advanced/job-queue-system.md+++ b/docs/advanced/job-queue-system.md@@ -97,17 +97,36 @@ def _claim_next_job(self, job_types, queue_name):```#### Race Condition Prevention-SQLite doesn't support `FOR UPDATE SKIP LOCKED`, so we use a threading lock:+SQLite doesn't support `FOR UPDATE SKIP LOCKED`, so we use an atomic UPDATE with a WHERE clause that checks the status is still 'queued'. This ensures only one worker can claim a job, even with multiple processes:```python-def __init__(self):- self._claim_lock = threading.Lock()-def _claim_next_job(self, job_types, queue_name):- with self._claim_lock:- # ... claim logic+ # Find candidate job+ candidate_job = ProcessingJob.query.filter(+ ProcessingJob.status == 'queued'+ ).first()++ if candidate_job:+ # Atomic claim - only succeeds if status is still 'queued'+ result = db.session.execute(+ update(ProcessingJob)+ .where(+ ProcessingJob.id == candidate_job.id,+ ProcessingJob.status == 'queued' # Critical check+ )+ .values(status='processing', started_at=datetime.utcnow())+ )++ if result.rowcount == 0:+ # Job was already claimed by another worker+ return None++ db.session.commit()+ return candidate_job```+This prevents the race condition where multiple workers could claim the same job when running as separate processes (fixed in v0.7.1).+#### Session ManagementJobs are claimed in one database session context, then processed in another to avoid detached object issues:@@ -371,7 +390,7 @@ if add_column_if_not_exists(engine, 'processing_job', 'is_new_upload', 'BOOLEAN- `is_new_upload=false`: Recording marked as FAILED, can be retried### Race Conditions-- Threading lock prevents multiple workers claiming same job+- Atomic UPDATE with WHERE clause prevents multiple workers claiming same job (v0.7.1+)- SQLite WAL mode enabled for better concurrency## API Endpoints Summarydiff --git a/docs/index.md b/docs/index.mdindex 9e37a94e..7d34d817 100644--- a/docs/index.md+++ b/docs/index.md@@ -6,16 +6,15 @@ Speakr is a powerful self-hosted transcription platform that helps you capture,<img src="assets/images/screenshots/Main view.png" alt="Main Interface" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);"></div>-!!! info "Latest Release: v0.7.0 - SSO & Russian Language"- **New Features** - Single Sign-On support and Russian localization+!!! info "Latest Release: v0.7.1 - Stability & Audio Improvements"+ **Bug Fixes & Improvements**- - **SSO Authentication** - Sign in with any OIDC provider (Keycloak, Azure AD, Google, Auth0, Pocket ID)- - **Account Linking/Unlinking** - Link or unlink SSO from Account settings- - **Auto-registration** - Optionally create accounts on first SSO login with domain filtering- - **Enforce SSO-only** - Disable password login for regular users (admins retain fallback access)- - **Russian Language** - Full Russian translation for the interface+ - **Audio Download Button** - Explicit download button next to audio player, works on mobile (#155)+ - **Job Queue Race Condition Fix** - Fixed issue where multiple workers could claim the same job, causing "FFmpeg not found" errors (#150)+ - **Audio Conversion Pipeline Refactor** - Improved format detection using ffprobe, better codec support (#158)+ - **Codec Compatibility Check** - Unsupported audio codecs are now automatically converted before transcription- *Contributed by [Dmitry Abramov](https://github.com/Daabramov)* | [SSO Setup Guide](admin-guide/sso-setup.md)+ *Thanks to [JadedBlueEyes](https://github.com/JadedBlueEyes) for PR #158 and [Daabramov](https://github.com/Daabramov) for debugging #150*## Quick Navigation