-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add delayedjob worker for thinking sphinx indexing
Thinking Sphinx indexing jobs should not be processed in parallel since it can lead to conflicts between them. Fixes #8208
- Loading branch information
1 parent
cf50a8c
commit 1805fd5
Showing
6 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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
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,16 @@ | ||
[Unit] | ||
Description = Open Build Service DelayedJob Queue Instance: sphinx indexing | ||
BindsTo = obs-api-support.target | ||
|
||
[Service] | ||
Environment = "RAILS_ENV=production" | ||
User = wwwrun | ||
Group = www | ||
WorkingDirectory = /srv/www/obs/api | ||
ExecStart = /usr/bin/bundle.ruby2.5 exec script/delayed_job.api.rb --queue=sphinx_indexing start -i 1070 | ||
ExecStop = /usr/bin/bundle.ruby2.5 exec script/delayed_job.api.rb --queue=sphinx_indexing stop -i 1070 | ||
Type = forking | ||
PIDFile = /srv/www/obs/api/tmp/pids/delayed_job.1070.pid | ||
|
||
[Install] | ||
WantedBy = obs-api-support.target |
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