pub enum AttentionReason {
StuckInState,
PermanentError,
RetryWindowExpired,
Misregistered,
TooManyAttempts,
OutcomeUncertain,
PartlyRegisteredOverdue,
VerificationGaveUp,
RepeatedlyNotRegistered,
StudentNumberStuck,
FlaggedByPipeline,
}Expand description
Why a row is picked. A row can carry several.
Variants§
StuckInState
Past its state’s threshold with the pipeline still owning it. The only reason with no person-level cause: a row carrying nothing else is running late, not needing attention.
PermanentError
failed_permanent with the pipeline’s flag up, for any code but retry_window_expired.
RetryWindowExpired
Misregistered
TooManyAttempts
Resent TOO_MANY_SUBMIT_RETRIES times and not finished.
OutcomeUncertain
submission_uncertain: never retried automatically, and never in bulk.
PartlyRegisteredOverdue
VerificationGaveUp
Verify has polled past its window without the course unit attainment showing up.
RepeatedlyNotRegistered
Suotar has lost the submission NOT_REGISTERED_REIMPORT_ADMIN_THRESHOLD times.
StudentNumberStuck
Pressed “I have enrolled”, and a fetch of the code’s enrolment list that could have claimed
a linking email started STUDENT_NUMBER_STUCK_AFTER_PRESS after the press, yet no linking
email has gone out on the code since, or that fetch found people who enrolled before account
linking began and were never mailed, whom the student may be among. Measured in fetches so a
paused pipeline does not count against the student.
FlaggedByPipeline
The pipeline’s flag is up and no other reason explains it.
Implementations§
Source§impl AttentionReason
impl AttentionReason
Sourcepub fn is_person_level(self) -> bool
pub fn is_person_level(self) -> bool
Whether the reason puts a row in the Needs attention count; see AttentionStanding.
Trait Implementations§
Source§impl Clone for AttentionReason
impl Clone for AttentionReason
Source§fn clone(&self) -> AttentionReason
fn clone(&self) -> AttentionReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for AttentionReason
impl ComposeSchema for AttentionReason
Source§impl Debug for AttentionReason
impl Debug for AttentionReason
Source§impl<'r> Decode<'r, Postgres> for AttentionReason
impl<'r> Decode<'r, Postgres> for AttentionReason
Source§impl<'de> Deserialize<'de> for AttentionReason
impl<'de> Deserialize<'de> for AttentionReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'q, DB: Database> Encode<'q, DB> for AttentionReasonwhere
&'q str: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for AttentionReasonwhere
&'q str: Encode<'q, DB>,
Source§fn encode_by_ref(
&self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <DB as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl Hash for AttentionReason
impl Hash for AttentionReason
Source§impl Ord for AttentionReason
impl Ord for AttentionReason
Source§fn cmp(&self, other: &AttentionReason) -> Ordering
fn cmp(&self, other: &AttentionReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AttentionReason
impl PartialEq for AttentionReason
Source§impl PartialOrd for AttentionReason
impl PartialOrd for AttentionReason
Source§impl PgHasArrayType for AttentionReason
impl PgHasArrayType for AttentionReason
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
Source§impl Serialize for AttentionReason
impl Serialize for AttentionReason
Source§impl ToSchema for AttentionReason
impl ToSchema for AttentionReason
Source§impl Type<Postgres> for AttentionReason
impl Type<Postgres> for AttentionReason
impl Copy for AttentionReason
impl Eq for AttentionReason
impl StructuralPartialEq for AttentionReason
Auto Trait Implementations§
impl Freeze for AttentionReason
impl RefUnwindSafe for AttentionReason
impl Send for AttentionReason
impl Sync for AttentionReason
impl Unpin for AttentionReason
impl UnsafeUnpin for AttentionReason
impl UnwindSafe for AttentionReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].