Skip to content

Conversation

@starpit
Copy link
Member

@starpit starpit commented Mar 4, 2025

This at least fixes the block timestamps for async model calls. i don’t think it’s possible to do this generally (at least with my understanding of python futures), because the pdl_lazy logic obscures the original asyncio.Future… but this future is available at the point of fire for the async model calls… so i’ve fixed that part.

It’s imperfect. As you can see in the screenshot, an outer Text block… doesn’t know that there are Futures under the hood. but still this seems like an improvement over what we had. and that might be something we can patch over in the UI.

This includes said patch to the UI (see src/view/timeline/model.ts, the comment that references #683). The screenshot would be the UI without this UI patch.

Screenshot 2025-03-04 at 12 31 11 PM

This at least fixes the block timestamps for async model calls. i don’t think it’s possible to do this generally (at least with my understanding of python futures), because the pdl_lazy logic obscures the original asyncio.Future… but this future is available at the point of fire for the async model calls… so i’ve fixed that part.

It’s imperfect, because e.g. an outer Text block… doesn’t know that there are Futures under the hood. but still this seems like an improvement over what we had. and that might be something we can patch over in the UI.

This includes said patch to the UI (see src/view/timeline/model.ts, the comment that references IBM#683)
Signed-off-by: Nick Mitchell <nickm@us.ibm.com>
@starpit starpit merged commit 0eb3974 into IBM:main Mar 4, 2025
5 checks passed
@starpit starpit deleted the end_nanos branch March 4, 2025 18:24
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.

1 participant