Skip to content

Conversation

@vishal-bala
Copy link
Collaborator

Re-creating PR #420 on the main repository since the GH Actions test suite has trouble running on PRs originating from a fork.

dfroger-idnow and others added 4 commits November 4, 2025 17:26
BEFORE:
- await pipe.expire() triggers ClusterPipeline.__await__
- this triggers .initialize() which delete the pipeline commands

AFTER:
- pipe.expire() in case of pipeline
- await pipe.expire() in case of classic client
Copy link
Collaborator

@nkanu17 nkanu17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The the suggested missing type hint needs to be fixed

raise NotImplementedError

@staticmethod
async def _aexpire(client: AsyncRedisClientOrPipeline, key: str, ttl: int):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async def _aexpire(client: AsyncRedisClientOrPipeline, key: str, ttl: int):
async def _aexpire(client: AsyncRedisClientOrPipeline, key: str, ttl: int) -> None:

@vishal-bala
Copy link
Collaborator Author

We've confirmed that all of the GH Actions checks pass on this code - closing this PR so that #420 can proceed.

@vishal-bala vishal-bala deleted the fix/dfroger/fix-pipeline-ttl branch December 18, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants