How to skip or cancel the activity while the interval 10s?

imagine one activity has 3 retry times, interval 10s.

if the first attempts failed, how can I skip or cancel the activity while the interval 10s?

I’m not sure I understand your question.

You can request cancellation of an activity from a workflow. If an activity is waiting to be retried, it will be canceled immediately. If it is running, then it will be canceled only if it heartbeats.

You can request cancellation of an activity from a workflow

u mean like tctl workflow cancel ? this will cancel the flow, I am intend to cancel/skip an activity

could u show me an example?

This is SDK specific. In Go, it is done by canceling a context passed to ExecuteActivity. See CancellationScope for all other SDKs.