Skip to content

Commit 8bfc515

Browse files
committed
Remove todos
1 parent 25448bd commit 8bfc515

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/trigger-sdk/src/v3/wait.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -790,21 +790,6 @@ export const wait = {
790790
},
791791
}
792792
);
793-
794-
//TODO:
795-
// Support a schema passed in, infer the type, or a generic supplied type
796-
// Support a timeout passed in
797-
// 1. Make an API call to engine.trigger.dev/v1/waitpoints/http-callback/create. New Waitpoint type "HTTPCallback"
798-
// 2. Return the url and a waitpoint id (but don't block the run yet)
799-
// 3. Create a span for the main call
800-
// 4. Set the url and waitpoint entity type and id as attributes on the parent span
801-
// 5. Create a span around the callback
802-
// 6. Deal with errors thrown in the callback use `tryCatch()`
803-
// 7. If that callback is successfully called, wait for the waitpoint with an API call to engine.trigger.dev/v1/waitpoints/http-callback/{waitpointId}/block
804-
// 8. Wait for the waitpoint in the runtime
805-
// 9. On the backend when the API is hit, complete the waitpoint with the result api.trigger.dev/v1/waitpoints/http-callback/{waitpointId}/callback
806-
// 10. Receive the result here and import the packet, then get the result in the right format
807-
// 11. Make unwrap work
808793
},
809794
};
810795

0 commit comments

Comments
 (0)