Skip to content
Discussion options

You must be logged in to vote

Yes there is the Attempt type.
There are two ways to access it:

  1. From the request
let attempt = req.parts.attempt.current();
  1. In the task_fn:
async fn send_email(_: Email, attempt: Attempt) {
    let current = attempt.current();
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Nycz-lab
Comment options

@geofmureithi
Comment options

Answer selected by geofmureithi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #607 on September 29, 2025 09:37.