Module background

Source
Expand description

Background container for long live jobs. Background container guarantees job liveness across plugin life cycle.

Structs§

CancellationCallbackState
CancellationToken
A token which can be used to signal a cancellation request to the job.
CancellationTokenHandleDeprecated
FfiBackgroundJobCancellationToken
For internal use.
JobCancellationResult
Outcome of the request to cancel a set of background jobs.
ServiceWorkerManager
ServiceWorkerManager allows plugin services to create long-live jobs and manage their life cycle.

Enums§

CancellationCallbackStatus
Error

Functions§

cancel_background_jobs_by_tag_inner
Same as PicoContext::cancel_tagged_jobs.
cancel_jobs_by_tag
Same as PicoContext::cancel_tagged_jobs.
register_job
Same as PicoContext::register_job.
register_tagged_job
Same as PicoContext::register_tagged_job.
set_jobs_shutdown_timeout
In case when jobs were canceled by picodata use this function to determine a shutdown timeout - time duration that picodata uses to ensure that all jobs gracefully end.