Skip to content

Commit

Permalink
Update src/worker/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Gjengset <[email protected]>
  • Loading branch information
rustworthy and jonhoo authored Jul 16, 2024
1 parent 6240de0 commit f41e063
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,13 @@ pub enum StopReason {
/// signalling the worker to stop.
GracefulShutdown,

/// A signal from the Faktory server received.
/// The Faktory server asked us to shut down.
///
/// Under the hood, the worker is being in constant communication with the Faktory server,
/// not only fetching jobs and reporting on processing results, but also listening for
/// the server's instructions, one of which can be to disengage.
FaktoryInstruction,
/// the server's instructions, one of which can be to disengage (e.g., to indicate that the
/// server is shutting down.
ServerInstruction,
}

impl<
Expand Down

0 comments on commit f41e063

Please sign in to comment.