-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor recording & reporting agent time usage #261
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! We are proposing some minor changes, please check them and apply them if necessary.
currentExecution.durationMs, | ||
); | ||
|
||
await onFinishPerformExecution(runEndedAt, totalFlowDurationMs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await onFinishPerformExecution(runEndedAt, totalFlowDurationMs); | |
await onFinishPerformExecution?.(runEndedAt, totalFlowDurationMs); |
onFinishPerformExecution: async ( | ||
endedAt: number, | ||
totalDurationMs: number, | ||
) => { | ||
await onFinishPerformExecutionAction( | ||
flowRunStartedAt, | ||
endedAt, | ||
totalDurationMs, | ||
); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onFinishPerformExecution: async ( | |
endedAt: number, | |
totalDurationMs: number, | |
) => { | |
await onFinishPerformExecutionAction( | |
flowRunStartedAt, | |
endedAt, | |
totalDurationMs, | |
); | |
}, | |
onFinishPerformExecution: (endedAt, durationMs) => | |
onFinishPerformExecutionAction(flowRunStartedAt, endedAt, durationMs), | |
onFinishPerformExecution: async (endedAt, durationMs) => { | ||
await onFinishPerformExecutionAction( | ||
flowRunStartedAt, | ||
endedAt, | ||
durationMs, | ||
); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onFinishPerformExecution: async (endedAt, durationMs) => { | |
await onFinishPerformExecutionAction( | |
flowRunStartedAt, | |
endedAt, | |
durationMs, | |
); | |
}, | |
onFinishPerformExecution: (endedAt, durationMs) => | |
onFinishPerformExecutionAction(flowRunStartedAt, endedAt, durationMs), | |
onFinishPerformExecution: async (endedAt, durationMs) => { | ||
await onFinishPerformExecutionAction( | ||
flowRunStartedAt, | ||
endedAt, | ||
durationMs, | ||
); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onFinishPerformExecution: async (endedAt, durationMs) => { | |
await onFinishPerformExecutionAction( | |
flowRunStartedAt, | |
endedAt, | |
durationMs, | |
); | |
}, | |
onFinishPerformExecution: (endedAt, durationMs) => | |
onFinishPerformExecutionAction(flowRunStartedAt, endedAt, durationMs), | |
onFinishPerformExecution: ( | ||
endedAt: number, | ||
durationMs: number, | ||
) => Promise<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be Optional.
onFinishPerformExecution: ( | |
endedAt: number, | |
durationMs: number, | |
) => Promise<void>; | |
onFinishPerformExecution?: ( | |
endedAt: number, | |
durationMs: number, | |
) => Promise<void>; |
Summary
Refactor recording & reporting agent time usage.
Related Issue
https://github.com/giselles-ai/giselle/pull/251/files#r1891016983