get current attempt #608
-
|
Hi, is there a way to get the current attempt of a job? |
Beta Was this translation helpful? Give feedback.
Answered by
geofmureithi
Sep 29, 2025
Replies: 1 comment 2 replies
-
|
Yes there is the Attempt type.
let attempt = req.parts.attempt.current();
async fn send_email(_: Email, attempt: Attempt) {
let current = attempt.current();
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
geofmureithi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes there is the Attempt type.
There are two ways to access it: