FOSSredder 0.5.0
Loading...
Searching...
No Matches
core::jobs Namespace Reference

Classes

struct  JobEvent
 Event emitted when a job changes state or progress. More...
class  JobManager
struct  JobSnapshot
 Snapshot of the latest known job state. More...
class  JobSystem
class  Scheduler
 Runs background tasks on a bounded worker queue. More...
class  SlotLimiter
 Limits concurrent access to a bounded number of slots. More...

Typedefs

using JobId = std::string
 Stable identifier for one tracked job.
using SubscriptionId = std::uint64_t
 Identifier for a job event subscription.
using JobEventCallback = std::function<void(const JobEvent&)>
 Callback invoked for published job events.

Enumerations

enum class  JobKind { Generic }
 Classifies the high-level type of job. More...
enum class  JobState {
  Pending , Running , Paused , Finished ,
  Failed , Canceled
}
 Runtime lifecycle state of a job. More...
enum class  JobStage { None }
 Generic stage marker used by job progress events. More...

Typedef Documentation

◆ JobEventCallback

using core::jobs::JobEventCallback = std::function<void(const JobEvent&)>

Callback invoked for published job events.

Definition at line 93 of file JobTypes.h.

◆ JobId

using core::jobs::JobId = std::string

Stable identifier for one tracked job.

Definition at line 21 of file JobTypes.h.

◆ SubscriptionId

using core::jobs::SubscriptionId = std::uint64_t

Identifier for a job event subscription.

Definition at line 88 of file JobTypes.h.

Enumeration Type Documentation

◆ JobKind

enum class core::jobs::JobKind
strong

Classifies the high-level type of job.

Enumerator
Generic 

Definition at line 26 of file JobTypes.h.

◆ JobStage

enum class core::jobs::JobStage
strong

Generic stage marker used by job progress events.

Enumerator
None 

Definition at line 45 of file JobTypes.h.

◆ JobState

enum class core::jobs::JobState
strong

Runtime lifecycle state of a job.

Enumerator
Pending 
Running 
Paused 
Finished 
Failed 
Canceled 

Definition at line 33 of file JobTypes.h.