pub struct CloudQueue {
pub connection: SqsQueue,
pub agent: Option<PathBuf>,
pub events: String,
}Expand description
A connection to Laravel Cloud’s managed queues, with the cloud driver. Needs the sqs
feature.
Laravel Cloud describes an application’s managed queues in
LARAVEL_CLOUD_MANAGED_QUEUES_CONFIG, and Queue::from_env reads that variable into the
cloud connection, so applications don’t build the connection themselves. Managed queues are
SQS queues. A worker for a single queue takes its jobs from Laravel Cloud’s agent when the
agent is enabled, and from SQS otherwise.
The connection reports each job’s progress, and each job that fails for good, to Laravel
Cloud’s event socket, which LARAVEL_CLOUD_LOG_SOCKET names. The queue:failed,
queue:forget, and queue:flush commands don’t see the failed jobs that Laravel Cloud keeps.
The Laravel Cloud dashboard retries those jobs by running queue:retry with a Laravel Cloud
URL.
Fields§
§connection: SqsQueueThe SQS connection behind the managed queues.
agent: Option<PathBuf>The agent’s Unix socket, when the agent is enabled.
events: StringThe socket where Laravel Cloud receives queue events and failed jobs, such as
unix:///tmp/cloud-init.sock or tcp://127.0.0.1:9000.
Trait Implementations§
Source§impl Clone for CloudQueue
impl Clone for CloudQueue
Source§fn clone(&self) -> CloudQueue
fn clone(&self) -> CloudQueue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CloudQueue
impl Debug for CloudQueue
impl Eq for CloudQueue
Source§impl From<CloudQueue> for ConnectionConfig
impl From<CloudQueue> for ConnectionConfig
Source§fn from(queue: CloudQueue) -> ConnectionConfig
fn from(queue: CloudQueue) -> ConnectionConfig
Source§impl FromStr for CloudQueue
impl FromStr for CloudQueue
Source§impl PartialEq for CloudQueue
impl PartialEq for CloudQueue
impl StructuralPartialEq for CloudQueue
Auto Trait Implementations§
impl Forget for CloudQueue
impl Freeze for CloudQueue
impl Move for CloudQueue
impl RefUnwindSafe for CloudQueue
impl Send for CloudQueuewhere
RawVecInner: Send,
impl Sync for CloudQueuewhere
RawVecInner: Sync,
impl Unpin for CloudQueue
impl UnsafeUnpin for CloudQueue
impl UnwindSafe for CloudQueuewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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