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

feat(v1): new gRPC API endpoints #1367

Merged
merged 14 commits into from
Mar 24, 2025
Merged

feat(v1): new gRPC API endpoints #1367

merged 14 commits into from
Mar 24, 2025

Conversation

abelanger5
Copy link
Contributor

@abelanger5 abelanger5 commented Mar 18, 2025

Description

Adds endpoints for durable event listeners and more dynamic DAG triggering/skipping.

Type of change

  • New feature (non-breaking change which adds functionality)

Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 23, 2025 3:40pm


message SleepMatchCondition {
BaseMatchCondition base = 1;
string sleep_for = 2; // a duration string indicating how long to sleep
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious what resolution can we support (i.e. ms?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Go duration string: Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"

message CreateTaskOpts {
string readable_id = 1; // (required) the task name
string action = 2; // (required) the task action id
string timeout = 3; // (optional) the task timeout
Copy link
Contributor

Choose a reason for hiding this comment

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

is schedule time out not on the task now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch, it is

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe schedule_timeout on the workflow should be changed to default_schedule timeout

also priority is task level

}

message BaseMatchCondition {
string event_key = 1;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing

string readable_data_key = 2;
Action action = 3;
string or_group_id = 4; // a UUID defining the OR group for this condition
string expression = 5;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

optional


enum Action {
CREATE = 0;
QUEUE = 1;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Document: QUEUE, CANCEL, SKIP relevant for task triggers, CREATE relevant for signals

@abelanger5 abelanger5 merged commit 00c4bbf into main Mar 24, 2025
35 checks passed
@abelanger5 abelanger5 deleted the belanger/v1-grpc-endpoints branch March 24, 2025 01:58
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.

3 participants