jsocol / jsocol/sphinxapi

Make K_TIMEOUT configurable and rename

Open
#2 1 comment 0 reactions 0 assignees View on GitHub

@jsocol is already working on this.

Since May 23, 2012.

Dominant language
Python
Stars
23
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Let's make K_TIMEOUT configurable via an environment variable, so that this stays generically useful but django can still set it.

TIMEOUT = os.env.get('SPHINX_TIMEOUT', 1)

Then Django can put, in settings:

os.env['SPHINX_TIMEOUT', 5)

That should work, if I understand the order of the imports. Will double test and implement.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The payload names no files or tests. Start by locating K_TIMEOUT and its uses, then inspect how configuration and imports work; clarify whether it should be renamed to TIMEOUT and verify the environment-variable behavior intended for Django. Done means the timeout is configurable without breaking the generic client.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.