-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-sql-warning' of 'https://github.com/jjmerchante/gri…
…moirelab-sortinghat' Merges #918 Closes #918
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
releases/unreleased/connection-closed-when-job-is-executed.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: Connection closed when job is executed | ||
category: fixed | ||
author: Jose Javier Merchante <jjmerchante@bitergia.com> | ||
issue: null | ||
notes: > | ||
RQ workers create a fork to run the jobs. The issue arises | ||
when, after completing the job, the MariaDB logs display the | ||
warning: `Aborted connection to db. Got an error reading | ||
communication packets`. This change ensures the database | ||
connection is closed before the fork ends, preventing the | ||
warning from appearing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -292,6 +292,10 @@ | |
} | ||
} | ||
|
||
RQ = { | ||
'JOB_CLASS': 'sortinghat.core.jobs.SortingHatJob' | ||
} | ||
|
||
# | ||
# SortingHat Multi-tenant | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters