GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Thread safety issues when sharing OauthClient in Celery workers · Issue #4 · openapi/openapi-python-sdk

Thread safety issues when sharing OauthClient in Celery workers #4

New issue
Copy link
New issue
Copy link
Closed
Closed
Thread safety issues when sharing OauthClient in Celery workers#4
Copy link

Description

@francescobianco
francescobianco
opened on Mar 18, 2026
Issue body actions

Thread safety issues when sharing OauthClient in Celery workers

Description
Using a shared OauthClient across Celery workers leads to inconsistent results.

Code snippet

from celery import shared_task
from openapi_sdk import OauthClient

oauth_client = OauthClient("user", "apikey", test=True)

@shared_task
def fetch_token():
    return oauth_client.create_token(["scope"], 3600)

Observed behavior
Random failures or corrupted responses.


Activity

  1. francescobianco
    closed this as completedin 21248d6on May 12, 2026
  2. Deadpool2000
    added a commit that references this issue on Jun 7, 2026

    Merge pull request openapi#17 from Deadpool2000/fix-4

    This issue will close once commit 21248d6 is merged into the 'main' branch.
    21248d6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.