Adjust payload field to print content if bytes are printable

This commit is contained in:
Ken Hibino
2021-06-01 20:37:18 -07:00
parent b5de7e6994
commit d58d549d4c
9 changed files with 41 additions and 19 deletions

View File

@@ -242,7 +242,7 @@ export interface DailyStat {
// BaseTask corresponds to asynq.Task type.
interface BaseTask {
type: string;
payload: { [key: string]: any };
payload: string;
}
export interface ActiveTask extends BaseTask {
@@ -314,7 +314,7 @@ export interface SchedulerEntry {
id: string;
spec: string;
task_type: string;
task_payload: { [key: string]: any };
task_payload: string;
options: string[];
next_enqueue_at: string;
// prev_enqueue_at will be omitted