mirror of
https://github.com/wassname/ray.git
synced 2026-08-17 11:25:34 +08:00
Merge task table and task log into a single table (#30)
* Merge task table and task log * Fix test in db tests * Address Robert's comments and some better error checking * Add a LOG_FATAL that exits the program
This commit is contained in:
committed by
Philipp Moritz
parent
194bdb1d96
commit
9d1e750e8f
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "task.h"
|
||||
|
||||
task_spec *example_task(void) {
|
||||
task_spec *example_task_spec(void) {
|
||||
task_id parent_task_id = globally_unique_id();
|
||||
function_id func_id = globally_unique_id();
|
||||
task_spec *task =
|
||||
@@ -16,11 +16,9 @@ task_spec *example_task(void) {
|
||||
return task;
|
||||
}
|
||||
|
||||
task_instance *example_task_instance(void) {
|
||||
task_iid iid = globally_unique_id();
|
||||
task_spec *spec = example_task();
|
||||
task_instance *instance =
|
||||
make_task_instance(iid, spec, TASK_STATUS_WAITING, NIL_ID);
|
||||
task *example_task(void) {
|
||||
task_spec *spec = example_task_spec();
|
||||
task *instance = alloc_task(spec, TASK_STATUS_WAITING, NIL_ID);
|
||||
free_task_spec(spec);
|
||||
return instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user