Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Fix: Create Schedule Workflow Pydantic Key Error #301

Merged
mrkaye97 merged 2 commits intohatchet-dev:mainfrom
philip-zhan:fix--schedule_create-key-arg
Jan 22, 2025
Merged

Fix: Create Schedule Workflow Pydantic Key Error #301
mrkaye97 merged 2 commits intohatchet-dev:mainfrom
philip-zhan:fix--schedule_create-key-arg

Conversation

@philip-zhan
Copy link
Contributor

@philip-zhan philip-zhan commented Jan 21, 2025

Fixing error

pydantic_core._pydantic_core.ValidationError: 2 validation errors for scheduled_workflow_run_create
schedule_workflow_run_request
  Missing required argument [type=missing_argument, input_value=ArgsKwargs((<hatchet_sdk....atetime.timezone.utc))}), input_type=ArgsKwargs]
    For further information visit https://errors.pydantic.dev/2.9/v/missing_argument
create_schedule_workflow_trigger_request
  Unexpected keyword argument [type=unexpected_keyword_argument, input_value=ScheduleWorkflowRunReques...=datetime.timezone.utc)), input_type=ScheduleWorkflowRunRequest]
    For further information visit https://errors.pydantic.dev/2.9/v/unexpected_keyword_argument

Context: https://discord.com/channels/1088927970518909068/1331373228161237013
Related: #300

@philip-zhan philip-zhan changed the title fix arg key for scheduled_workflow_run_create Fix: arg key for scheduled_workflow_run_create Jan 21, 2025
@philip-zhan philip-zhan changed the title Fix: arg key for scheduled_workflow_run_create Fix: Create Schedule Workflow Key Error Jan 21, 2025
@philip-zhan philip-zhan changed the title Fix: Create Schedule Workflow Key Error Fix: Create Schedule Workflow Pydantic Key Error Jan 21, 2025
@abelanger5 abelanger5 requested a review from mrkaye97 January 21, 2025 23:36
Copy link
Contributor

@mrkaye97 mrkaye97 left a comment

Choose a reason for hiding this comment

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

thanks for the fix!

@mrkaye97 mrkaye97 merged commit e3a4387 into hatchet-dev:main Jan 22, 2025
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants