FOSSredder 0.5.0
Loading...
Searching...
No Matches
JobTypes.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <atomic>
9#include <chrono>
10#include <cstdint>
11#include <functional>
12#include <optional>
13#include <string>
14#include <vector>
15
16namespace core::jobs {
17
21using JobId = std::string;
22
26enum class JobKind {
28};
29
41
45enum class JobStage {
47};
48
66
84
88using SubscriptionId = std::uint64_t;
89
93using JobEventCallback = std::function<void(const JobEvent&)>;
94
95}
std::uint64_t SubscriptionId
Identifier for a job event subscription.
Definition JobTypes.h:88
JobStage
Generic stage marker used by job progress events.
Definition JobTypes.h:45
JobState
Runtime lifecycle state of a job.
Definition JobTypes.h:33
std::string JobId
Stable identifier for one tracked job.
Definition JobTypes.h:21
JobKind
Classifies the high-level type of job.
Definition JobTypes.h:26
std::function< void(const JobEvent &)> JobEventCallback
Callback invoked for published job events.
Definition JobTypes.h:93
Event emitted when a job changes state or progress.
Definition JobTypes.h:52
std::string message
Definition JobTypes.h:59
Snapshot of the latest known job state.
Definition JobTypes.h:70
std::string message
Definition JobTypes.h:77