mirror of
https://github.com/wassname/ray.git
synced 2026-08-04 13:14:14 +08:00
Logging level (#38)
* Set logging levels in Makefile using -DRAY_COMMON_LOG_LEVEL=level * Lower level of some LOG_ERROR messages, log the name of the table operation on failure * Address rest of Robert's comments * Fix spurious log message
This commit is contained in:
committed by
Robert Nishihara
parent
986ed5c9e8
commit
7babe0d22f
@@ -8,6 +8,13 @@
|
||||
#include "photon.h"
|
||||
#include "photon_scheduler.h"
|
||||
|
||||
/* TODO(swang): We should set retry values in a config file somewhere. */
|
||||
const retry_info photon_retry = {
|
||||
.num_retries = 0,
|
||||
.timeout = 1000,
|
||||
.fail_callback = NULL,
|
||||
};
|
||||
|
||||
typedef struct task_queue_entry {
|
||||
task *task;
|
||||
struct task_queue_entry *prev;
|
||||
@@ -147,13 +154,9 @@ void handle_task_submitted(scheduler_info *info,
|
||||
DL_APPEND(s->task_queue, elt);
|
||||
}
|
||||
/* Submit the task to redis. */
|
||||
/* TODO(swang): We should set retry values in a config file somewhere. */
|
||||
retry_info retry = {
|
||||
.num_retries = 0, .timeout = 0, .fail_callback = NULL,
|
||||
};
|
||||
/* TODO(swang): This should be task_table_update if the task is already in the
|
||||
* log. */
|
||||
task_table_add_task(info->db, task, &retry, NULL, NULL);
|
||||
task_table_add_task(info->db, task, (retry_info *) &photon_retry, NULL, NULL);
|
||||
if (schedule_locally) {
|
||||
/* If the task was scheduled locally, we need to free it. Otherwise,
|
||||
* ownership of the task is passed to the task_queue, and it will be freed
|
||||
|
||||
Reference in New Issue
Block a user