Skip to content

Commit b561962

Browse files
committed
merge main
2 parents 3c72c99 + 4054d17 commit b561962

File tree

270 files changed

+1053
-1224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+1053
-1224
lines changed

internal/services/admin/v1/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ func getCreateTaskOpts(tasks []*contracts.CreateTaskOpts, kind string) ([]v1.Cre
937937

938938
orGroupIdStr := userEventCondition.Base.OrGroupId
939939

940-
if orGroupIdStr == "" {
940+
if orGroupIdStr == "" || orGroupIdStr == uuid.Nil.String() {
941941
orGroupIdStr = uuid.New().String()
942942
}
943943

@@ -971,7 +971,7 @@ func getCreateTaskOpts(tasks []*contracts.CreateTaskOpts, kind string) ([]v1.Cre
971971

972972
orGroupIdStr := sleepCondition.Base.OrGroupId
973973

974-
if orGroupIdStr == "" {
974+
if orGroupIdStr == "" || orGroupIdStr == uuid.Nil.String() {
975975
orGroupIdStr = uuid.New().String()
976976
}
977977

@@ -1002,7 +1002,7 @@ func getCreateTaskOpts(tasks []*contracts.CreateTaskOpts, kind string) ([]v1.Cre
10021002

10031003
orGroupIdStr := parentOverrideCondition.Base.OrGroupId
10041004

1005-
if orGroupIdStr == "" {
1005+
if orGroupIdStr == "" || orGroupIdStr == uuid.Nil.String() {
10061006
orGroupIdStr = uuid.New().String()
10071007
}
10081008

pkg/client/dispatcher.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ const (
4242
)
4343

4444
type GetActionListenerRequest struct {
45-
WorkerName string
46-
Services []string
47-
Actions []string
48-
Slots *int
49-
DurableSlots *int
50-
SlotConfig map[string]int32
51-
Labels map[string]interface{}
52-
WebhookId *string
45+
WorkerName string
46+
Services []string
47+
Actions []string
48+
Slots *int
49+
DurableSlots *int
50+
SlotConfig map[string]int32
51+
Labels map[string]interface{}
52+
WebhookId *string
5353
}
5454

5555
// ActionPayload unmarshals the action payload into the target. It also validates the resulting target.

pkg/worker/worker.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ type WorkerOpts struct {
120120
name string
121121
l *zerolog.Logger
122122

123-
integrations []integrations.Integration
124-
alerter errors.Alerter
123+
integrations []integrations.Integration
124+
alerter errors.Alerter
125125
slots *int
126126
durableSlots *int
127127
slotConfig map[string]int32
@@ -482,12 +482,12 @@ func (w *Worker) startBlocking(ctx context.Context) error {
482482
_ = NewManagedCompute(&w.actions, w.client, 1)
483483

484484
listener, id, err := w.client.Dispatcher().GetActionListener(ctx, &client.GetActionListenerRequest{
485-
WorkerName: w.name,
486-
Actions: actionNames,
487-
Slots: w.slots,
488-
Labels: w.labels,
489-
DurableSlots: w.durableSlots,
490-
SlotConfig: w.slotConfig,
485+
WorkerName: w.name,
486+
Actions: actionNames,
487+
Slots: w.slots,
488+
Labels: w.labels,
489+
DurableSlots: w.durableSlots,
490+
SlotConfig: w.slotConfig,
491491
})
492492

493493
w.id = id

sdks/python/hatchet_sdk/clients/rest/__init__.py

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@
1919
# import apis into sdk package
2020
from hatchet_sdk.clients.rest.api.api_token_api import APITokenApi
2121
from hatchet_sdk.clients.rest.api.cel_api import CELApi
22-
from hatchet_sdk.clients.rest.api.default_api import DefaultApi
2322
from hatchet_sdk.clients.rest.api.event_api import EventApi
2423
from hatchet_sdk.clients.rest.api.filter_api import FilterApi
2524
from hatchet_sdk.clients.rest.api.github_api import GithubApi
2625
from hatchet_sdk.clients.rest.api.healthcheck_api import HealthcheckApi
2726
from hatchet_sdk.clients.rest.api.log_api import LogApi
2827
from hatchet_sdk.clients.rest.api.metadata_api import MetadataApi
2928
from hatchet_sdk.clients.rest.api.rate_limits_api import RateLimitsApi
30-
from hatchet_sdk.clients.rest.api.slack_api import SlackApi
3129
from hatchet_sdk.clients.rest.api.sns_api import SNSApi
30+
from hatchet_sdk.clients.rest.api.slack_api import SlackApi
3231
from hatchet_sdk.clients.rest.api.step_run_api import StepRunApi
3332
from hatchet_sdk.clients.rest.api.task_api import TaskApi
3433
from hatchet_sdk.clients.rest.api.tenant_api import TenantApi
@@ -38,20 +37,18 @@
3837
from hatchet_sdk.clients.rest.api.workflow_api import WorkflowApi
3938
from hatchet_sdk.clients.rest.api.workflow_run_api import WorkflowRunApi
4039
from hatchet_sdk.clients.rest.api.workflow_runs_api import WorkflowRunsApi
41-
from hatchet_sdk.clients.rest.api_client import ApiClient
40+
from hatchet_sdk.clients.rest.api.default_api import DefaultApi
4241

4342
# import ApiClient
4443
from hatchet_sdk.clients.rest.api_response import ApiResponse
44+
from hatchet_sdk.clients.rest.api_client import ApiClient
4545
from hatchet_sdk.clients.rest.configuration import Configuration
46-
from hatchet_sdk.clients.rest.exceptions import (
47-
ApiAttributeError,
48-
ApiException,
49-
ApiKeyError,
50-
ApiTypeError,
51-
ApiValueError,
52-
OpenApiException,
53-
)
54-
from hatchet_sdk.clients.rest.models.accept_invite_request import AcceptInviteRequest
46+
from hatchet_sdk.clients.rest.exceptions import OpenApiException
47+
from hatchet_sdk.clients.rest.exceptions import ApiTypeError
48+
from hatchet_sdk.clients.rest.exceptions import ApiValueError
49+
from hatchet_sdk.clients.rest.exceptions import ApiKeyError
50+
from hatchet_sdk.clients.rest.exceptions import ApiAttributeError
51+
from hatchet_sdk.clients.rest.exceptions import ApiException
5552

5653
# import models into sdk package
5754
from hatchet_sdk.clients.rest.models.api_error import APIError
@@ -62,6 +59,7 @@
6259
from hatchet_sdk.clients.rest.models.api_meta_posthog import APIMetaPosthog
6360
from hatchet_sdk.clients.rest.models.api_resource_meta import APIResourceMeta
6461
from hatchet_sdk.clients.rest.models.api_token import APIToken
62+
from hatchet_sdk.clients.rest.models.accept_invite_request import AcceptInviteRequest
6563
from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
6664
BulkCreateEventRequest,
6765
)
@@ -131,8 +129,8 @@
131129
from hatchet_sdk.clients.rest.models.list_pull_requests_response import (
132130
ListPullRequestsResponse,
133131
)
134-
from hatchet_sdk.clients.rest.models.list_slack_webhooks import ListSlackWebhooks
135132
from hatchet_sdk.clients.rest.models.list_sns_integrations import ListSNSIntegrations
133+
from hatchet_sdk.clients.rest.models.list_slack_webhooks import ListSlackWebhooks
136134
from hatchet_sdk.clients.rest.models.log_line import LogLine
137135
from hatchet_sdk.clients.rest.models.log_line_level import LogLineLevel
138136
from hatchet_sdk.clients.rest.models.log_line_list import LogLineList
@@ -163,6 +161,7 @@
163161
ReplayWorkflowRunsResponse,
164162
)
165163
from hatchet_sdk.clients.rest.models.rerun_step_run_request import RerunStepRunRequest
164+
from hatchet_sdk.clients.rest.models.sns_integration import SNSIntegration
166165
from hatchet_sdk.clients.rest.models.schedule_workflow_run_request import (
167166
ScheduleWorkflowRunRequest,
168167
)
@@ -200,7 +199,6 @@
200199
)
201200
from hatchet_sdk.clients.rest.models.semaphore_slots import SemaphoreSlots
202201
from hatchet_sdk.clients.rest.models.slack_webhook import SlackWebhook
203-
from hatchet_sdk.clients.rest.models.sns_integration import SNSIntegration
204202
from hatchet_sdk.clients.rest.models.step import Step
205203
from hatchet_sdk.clients.rest.models.step_run import StepRun
206204
from hatchet_sdk.clients.rest.models.step_run_archive import StepRunArchive
@@ -268,13 +266,13 @@
268266
UserTenantMembershipsList,
269267
)
270268
from hatchet_sdk.clients.rest.models.user_tenant_public import UserTenantPublic
271-
from hatchet_sdk.clients.rest.models.v1_cancel_task_request import V1CancelTaskRequest
272-
from hatchet_sdk.clients.rest.models.v1_cancelled_tasks import V1CancelledTasks
273269
from hatchet_sdk.clients.rest.models.v1_cel_debug_request import V1CELDebugRequest
274270
from hatchet_sdk.clients.rest.models.v1_cel_debug_response import V1CELDebugResponse
275271
from hatchet_sdk.clients.rest.models.v1_cel_debug_response_status import (
276272
V1CELDebugResponseStatus,
277273
)
274+
from hatchet_sdk.clients.rest.models.v1_cancel_task_request import V1CancelTaskRequest
275+
from hatchet_sdk.clients.rest.models.v1_cancelled_tasks import V1CancelledTasks
278276
from hatchet_sdk.clients.rest.models.v1_create_filter_request import (
279277
V1CreateFilterRequest,
280278
)

sdks/python/hatchet_sdk/clients/rest/api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
# import apis into api package
44
from hatchet_sdk.clients.rest.api.api_token_api import APITokenApi
55
from hatchet_sdk.clients.rest.api.cel_api import CELApi
6-
from hatchet_sdk.clients.rest.api.default_api import DefaultApi
76
from hatchet_sdk.clients.rest.api.event_api import EventApi
87
from hatchet_sdk.clients.rest.api.filter_api import FilterApi
98
from hatchet_sdk.clients.rest.api.github_api import GithubApi
109
from hatchet_sdk.clients.rest.api.healthcheck_api import HealthcheckApi
1110
from hatchet_sdk.clients.rest.api.log_api import LogApi
1211
from hatchet_sdk.clients.rest.api.metadata_api import MetadataApi
1312
from hatchet_sdk.clients.rest.api.rate_limits_api import RateLimitsApi
14-
from hatchet_sdk.clients.rest.api.slack_api import SlackApi
1513
from hatchet_sdk.clients.rest.api.sns_api import SNSApi
14+
from hatchet_sdk.clients.rest.api.slack_api import SlackApi
1615
from hatchet_sdk.clients.rest.api.step_run_api import StepRunApi
1716
from hatchet_sdk.clients.rest.api.task_api import TaskApi
1817
from hatchet_sdk.clients.rest.api.tenant_api import TenantApi
@@ -22,3 +21,4 @@
2221
from hatchet_sdk.clients.rest.api.workflow_api import WorkflowApi
2322
from hatchet_sdk.clients.rest.api.workflow_run_api import WorkflowRunApi
2423
from hatchet_sdk.clients.rest.api.workflow_runs_api import WorkflowRunsApi
24+
from hatchet_sdk.clients.rest.api.default_api import DefaultApi

sdks/python/hatchet_sdk/clients/rest/api/api_token_api.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
""" # noqa: E501
1313

1414
import warnings
15+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1516
from typing import Any, Dict, List, Optional, Tuple, Union
16-
17-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
1817
from typing_extensions import Annotated
1918

20-
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
21-
from hatchet_sdk.clients.rest.api_response import ApiResponse
19+
from pydantic import Field
20+
from typing import Optional
21+
from typing_extensions import Annotated
2222
from hatchet_sdk.clients.rest.models.create_api_token_request import (
2323
CreateAPITokenRequest,
2424
)
@@ -28,6 +28,9 @@
2828
from hatchet_sdk.clients.rest.models.list_api_tokens_response import (
2929
ListAPITokensResponse,
3030
)
31+
32+
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
33+
from hatchet_sdk.clients.rest.api_response import ApiResponse
3134
from hatchet_sdk.clients.rest.rest import RESTResponseType
3235

3336

sdks/python/hatchet_sdk/clients/rest/api/cel_api.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@
1212
""" # noqa: E501
1313

1414
import warnings
15+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1516
from typing import Any, Dict, List, Optional, Tuple, Union
17+
from typing_extensions import Annotated
1618

17-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
19+
from pydantic import Field
1820
from typing_extensions import Annotated
21+
from hatchet_sdk.clients.rest.models.v1_cel_debug_request import V1CELDebugRequest
22+
from hatchet_sdk.clients.rest.models.v1_cel_debug_response import V1CELDebugResponse
1923

2024
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
2125
from hatchet_sdk.clients.rest.api_response import ApiResponse
22-
from hatchet_sdk.clients.rest.models.v1_cel_debug_request import V1CELDebugRequest
23-
from hatchet_sdk.clients.rest.models.v1_cel_debug_response import V1CELDebugResponse
2426
from hatchet_sdk.clients.rest.rest import RESTResponseType
2527

2628

sdks/python/hatchet_sdk/clients/rest/api/default_api.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
""" # noqa: E501
1313

1414
import warnings
15+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1516
from typing import Any, Dict, List, Optional, Tuple, Union
16-
17-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
1817
from typing_extensions import Annotated
1918

20-
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
21-
from hatchet_sdk.clients.rest.api_response import ApiResponse
19+
from pydantic import Field
20+
from typing import Optional
21+
from typing_extensions import Annotated
2222
from hatchet_sdk.clients.rest.models.info_get_version200_response import (
2323
InfoGetVersion200Response,
2424
)
@@ -36,6 +36,9 @@
3636
from hatchet_sdk.clients.rest.models.webhook_worker_request_list_response import (
3737
WebhookWorkerRequestListResponse,
3838
)
39+
40+
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
41+
from hatchet_sdk.clients.rest.api_response import ApiResponse
3942
from hatchet_sdk.clients.rest.rest import RESTResponseType
4043

4144

sdks/python/hatchet_sdk/clients/rest/api/event_api.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
""" # noqa: E501
1313

1414
import warnings
15-
from datetime import datetime
15+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1616
from typing import Any, Dict, List, Optional, Tuple, Union
17-
18-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
1917
from typing_extensions import Annotated
2018

21-
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
22-
from hatchet_sdk.clients.rest.api_response import ApiResponse
19+
from datetime import datetime
20+
from pydantic import Field, StrictInt, StrictStr
21+
from typing import List, Optional
22+
from typing_extensions import Annotated
2323
from hatchet_sdk.clients.rest.models.bulk_create_event_request import (
2424
BulkCreateEventRequest,
2525
)
@@ -42,6 +42,9 @@
4242
from hatchet_sdk.clients.rest.models.v1_event_list import V1EventList
4343
from hatchet_sdk.clients.rest.models.v1_task_status import V1TaskStatus
4444
from hatchet_sdk.clients.rest.models.workflow_run_status import WorkflowRunStatus
45+
46+
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
47+
from hatchet_sdk.clients.rest.api_response import ApiResponse
4548
from hatchet_sdk.clients.rest.rest import RESTResponseType
4649

4750

sdks/python/hatchet_sdk/clients/rest/api/filter_api.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
""" # noqa: E501
1313

1414
import warnings
15+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
1516
from typing import Any, Dict, List, Optional, Tuple, Union
16-
17-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
1817
from typing_extensions import Annotated
1918

20-
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
21-
from hatchet_sdk.clients.rest.api_response import ApiResponse
19+
from pydantic import Field, StrictInt, StrictStr
20+
from typing import List, Optional
21+
from typing_extensions import Annotated
2222
from hatchet_sdk.clients.rest.models.v1_create_filter_request import (
2323
V1CreateFilterRequest,
2424
)
@@ -27,6 +27,9 @@
2727
from hatchet_sdk.clients.rest.models.v1_update_filter_request import (
2828
V1UpdateFilterRequest,
2929
)
30+
31+
from hatchet_sdk.clients.rest.api_client import ApiClient, RequestSerialized
32+
from hatchet_sdk.clients.rest.api_response import ApiResponse
3033
from hatchet_sdk.clients.rest.rest import RESTResponseType
3134

3235

0 commit comments

Comments
 (0)