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

[Question] How to debug the activity task startToClose timeout error? #568

Open
ArFeRR opened this issue Feb 12, 2025 · 1 comment
Open
Labels
Question Further information is requested

Comments

@ArFeRR
Copy link

ArFeRR commented Feb 12, 2025

We're receiving the activity startToClose timeout for our activity, written on PHP with the retry policy below:

Timeout 3m
Retry Policy Initial Interval 1s
Retry Policy Backoff Coefficient 3
Retry Policy Maximum Interval 10s
Retry Policy Maximum Attempts 30

The task, which timeouts, does nothing but going to database for selecting some data by indexed field and it actually does it, but after executing the activity code it hangs for no reason until 3 minutes timeout appears. Then retry policy comes to an action and retry task starts execution, it ends with timeout too and so on, and so on. Once it all the task attempts end with timeout is throws an activity exception permanently.

Could you please look through the JSON log from temporal workflow admin for such activity and advice what to do with it?
(We've already checked the deadline exceeded debugging cookbook https://docs.temporal.io/troubleshooting/deadline-exceeded-error ,but everything is alright from our side)

TaskFailed.json
WorkflowFailed.json

@ArFeRR ArFeRR added the Bug Something isn't working label Feb 12, 2025
@wolfy-j
Copy link
Collaborator

wolfy-j commented Feb 12, 2025

  1. Check activity status in Temporal UI, was it started?
  2. Check logs on worker that runs it, is there a chance that worker is dead?
  3. Are you using Temporal cloud or local?
  4. Are you using latest versions of RR and SDK?

it feels like your activity worker is crashing, can you try to use mock activity or something that def works first?

@roxblnfk roxblnfk added Question Further information is requested and removed Bug Something isn't working labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants