Skip to content
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

Add parameters to startWorkflow #673

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Add parameters to startWorkflow #673

merged 2 commits into from
Dec 11, 2024

Conversation

chuck-dbos
Copy link
Collaborator

@chuck-dbos chuck-dbos commented Dec 10, 2024

Allow setting of workflow ID and queue as part of startWorkflow syntax.
Remove a couple of comments that don't mean anything any more.

@chuck-dbos chuck-dbos requested review from kraftp and qianl15 December 10, 2024 23:31
Copy link
Member

@kraftp kraftp left a comment

Choose a reason for hiding this comment

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

This is a much better interface for queues!

@@ -121,6 +121,11 @@ function httpApiDec(verb: APITypes, url: string) {
}
}

export interface StartWorkflowParams {
workflowID?: string;
queueName?: string;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe make it the entire queue object instead of just the name? Not a huge deal either way.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are reasons why not to use the whole object. Internally, we will eventually be able to get the object by name anyway.

@chuck-dbos chuck-dbos merged commit 99b4dd1 into main Dec 11, 2024
5 checks passed
@chuck-dbos chuck-dbos deleted the chuck/fixwfq branch December 11, 2024 18: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.

2 participants