Skip to content

Commit

Permalink
fix cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Nov 22, 2024
1 parent 592a770 commit 80b5d40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypha/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.20.39.post14"
"version": "0.20.39.post15"
}
2 changes: 1 addition & 1 deletion hypha/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ async def cleanup(
logger.error(f"Failed to ping client {client}: {e}")
# Remove dead client
await self.delete_client(
client, ws, context["user"], unload=False, context=context
client, workspace, context["user"], unload=False, context=context
)
removed.append(client)
if removed:
Expand Down
6 changes: 6 additions & 0 deletions tests/test_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,12 +696,18 @@ async def test_publish_artifact(minio_server, fastapi_server, test_user_token):

dataset = await artifact_manager.create(
type="dataset",
alias="{zenodo_conceptrecid}",
parent_id=collection.id,
manifest=dataset_manifest,
version="stage",
publish_to="sandbox_zenodo",
)

assert (
dataset.alias != "{zenodo_conceptrecid}"
and str(int(dataset.alias)) == dataset.alias
)

# Add a file to the artifact
put_url = await artifact_manager.put_file(
artifact_id=dataset.id,
Expand Down

0 comments on commit 80b5d40

Please sign in to comment.