|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Information about a job in the DAG. More...
#include <dag_job.h>

Public Member Functions | |
| auto | get_wait_time () const -> std::chrono::milliseconds |
| Calculate wait time (time from submit to start) | |
| auto | get_execution_time () const -> std::chrono::milliseconds |
| Calculate execution time. | |
Public Attributes | |
| job_id | id {INVALID_JOB_ID} |
| Unique job identifier. | |
| std::string | name |
| Human-readable job name. | |
| dag_job_state | state {dag_job_state::pending} |
| Current job state. | |
| std::vector< job_id > | dependencies |
| Jobs this job depends on. | |
| std::vector< job_id > | dependents |
| Jobs that depend on this job. | |
| std::chrono::steady_clock::time_point | submit_time |
| When job was added to DAG. | |
| std::chrono::steady_clock::time_point | start_time |
| When execution started. | |
| std::chrono::steady_clock::time_point | end_time |
| When execution ended. | |
| std::optional< std::string > | error_message |
| Error message if failed. | |
| std::optional< std::any > | result |
| Result value for passing between jobs. | |
Information about a job in the DAG.
This structure provides a snapshot of a job's state and metadata for monitoring and debugging purposes.
|
inlinenodiscard |
Calculate execution time.
Definition at line 115 of file dag_job.h.
References end_time, and start_time.
|
inlinenodiscard |
Calculate wait time (time from submit to start)
Definition at line 102 of file dag_job.h.
References start_time, and submit_time.
| std::vector<job_id> kcenon::thread::dag_job_info::dependencies |
| std::vector<job_id> kcenon::thread::dag_job_info::dependents |
| std::chrono::steady_clock::time_point kcenon::thread::dag_job_info::end_time |
| std::optional<std::string> kcenon::thread::dag_job_info::error_message |
| job_id kcenon::thread::dag_job_info::id {INVALID_JOB_ID} |
Unique job identifier.
Definition at line 84 of file dag_job.h.
Referenced by kcenon::thread::dag_job::get_info().
| std::string kcenon::thread::dag_job_info::name |
| std::optional<std::any> kcenon::thread::dag_job_info::result |
| std::chrono::steady_clock::time_point kcenon::thread::dag_job_info::start_time |
When execution started.
Definition at line 92 of file dag_job.h.
Referenced by get_execution_time(), and get_wait_time().
| dag_job_state kcenon::thread::dag_job_info::state {dag_job_state::pending} |
| std::chrono::steady_clock::time_point kcenon::thread::dag_job_info::submit_time |