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

[Bug] [ErrorException] exclude_calendar is deprecated. #522

Closed
sidorov89 opened this issue Nov 3, 2024 · 2 comments
Closed

[Bug] [ErrorException] exclude_calendar is deprecated. #522

sidorov89 opened this issue Nov 3, 2024 · 2 comments
Assignees
Labels
Bug Something isn't working

Comments

@sidorov89
Copy link

What are you really trying to do?

I'm trying add workflow into Temporal Schedule

Describe the bug

#[AsCommand(name: 'check:status')]
final class CheckStatusCommand extends Command
{

    public function __invoke(): int
    {
              $client = \Temporal\Client\ScheduleClient::create(
                  \Temporal\Client\GRPC\ServiceClient::create('localhost:7233'),
              );
      
              $handle = $client->createSchedule(
                  Schedule\Schedule::new()->withAction(
                      Schedule\Action\StartWorkflowAction::new('WebsiteStatusWorkflow')
                          ->withRetryPolicy(\Temporal\Common\RetryOptions::new()->withMaximumAttempts(3))
                          ->withHeader(['foo' => 'bar'])
                          ->withWorkflowExecutionTimeout('40m')
                  )->withSpec(
                      Schedule\Spec\ScheduleSpec::new()
                          ->withIntervalList(5 * 60) // every 5 minutes
                          ->withJitter(60) // with jitter of 1 minute
                  ),
                  scheduleId: 'my-schedule-id',
              );
      }
}

After run code php app.php check:status in console I get Exception:
"[ErrorException]
exclude_calendar is deprecated.
in vendor/roadrunner-php/roadrunner-api-dto/generated/Temporal/Api/Schedule/V1/ScheduleSpec.php:355"

Environment/Versions

  • Roadrunner Version version: 2024.2.1,
  • Temporal CLI 1.1.1 (Server 1.25.1, UI 2.31.2)
  • OS and Platform Mac Book Intel Core i7
  • Are you using Docker or Kubernetes or building Temporal from source? "brew install temporal"
  • Framework Spiral 3.14.6
@sidorov89 sidorov89 added the Bug Something isn't working label Nov 3, 2024
@roxblnfk roxblnfk self-assigned this Nov 4, 2024
@roxblnfk
Copy link
Collaborator

roxblnfk commented Nov 5, 2024

@sidorov89 hi ✋
Could you check that PR fixes the deprecation error

@roxblnfk
Copy link
Collaborator

Resolved by adding PHP protobuf extension.
Other deprecations were fixed in #523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@roxblnfk @sidorov89 and others