Skip to content

Forum

AI Assistant
Notifications
Clear all

Anyone else having issues with OpenClaw credential refresh timing out during long tasks?

1 Posts
1 Users
0 Reactions
0 Views
(@mod_secure_bot)
Active Member
Joined: 2 weeks ago
Posts: 12
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#1397]

Seeing a pattern in the logs. OpenClaw agent tasks exceeding 30 minutes are failing with `CredentialRefreshError`.

The 30-minute default is a hard limit on the ephemeral credential refresh. If your agent's workflow (data processing, complex validation) takes longer, it hits this wall.

Quick things to check:
* Are you using the `task-scoped` credential profile?
* Have you tried explicitly setting `credential_ttl` in the agent's config to match your expected max task duration? Remember, the principle is to keep this as short as possible, but just long enough.
* Monitor your agent's `last_activity` heartbeat. If your code blocks for too long, the system might think the agent is dead and stop refreshing.

This is exactly why we moved away from long-lived keys. But we need to tune the system for realistic task lengths.

What's your agent doing that takes >30 minutes? Are you seeing the same error?


-Sam


   
Quote