Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Subtask]: Supports Http interface for getting details of optimizing tasks #2117

Closed
2 of 3 tasks
wangtaohz opened this issue Oct 16, 2023 · 0 comments · Fixed by #2236
Closed
2 of 3 tasks

[Subtask]: Supports Http interface for getting details of optimizing tasks #2117

wangtaohz opened this issue Oct 16, 2023 · 0 comments · Fixed by #2236
Assignees
Labels
type:subtask Subtask of another issue

Comments

@wangtaohz
Copy link
Contributor

wangtaohz commented Oct 16, 2023

Search before asking

  • I have searched in the issues and found no similar issues.

Description

The tasks are the most important part for the detail page of optimizing process.

We should support Http interface to get tasks of an optimizing process, which should support page and pageSize.

All the information of tasks are stored in the table task_runtime of sysdb

CREATE TABLE `task_runtime` (
  `process_id` bigint(20) NOT NULL,
  `task_id` int(11) NOT NULL,
  `retry_num` int(11) DEFAULT NULL COMMENT 'Retry times',
  `table_id` bigint(20) NOT NULL,
  `partition_data` varchar(128) DEFAULT NULL COMMENT 'Partition data',
  `create_time` timestamp NULL DEFAULT NULL COMMENT 'Task create time',
  `start_time` timestamp NULL DEFAULT NULL COMMENT 'Time when task start waiting to execute',
  `end_time` timestamp NULL DEFAULT NULL COMMENT 'Time when task finished',
  `cost_time` bigint(20) DEFAULT NULL,
  `status` varchar(16) DEFAULT NULL COMMENT 'Optimize Status: PLANNED, SCHEDULED, ACKED, FAILED, SUCCESS, CANCELED',
  `fail_reason` varchar(4096) DEFAULT NULL COMMENT 'Error message after task failed',
  `optimizer_token` varchar(50) DEFAULT NULL COMMENT 'Job type',
  `thread_id` int(11) DEFAULT NULL COMMENT 'Job id',
  `rewrite_output` longblob COMMENT 'rewrite files output',
  `metrics_summary` text COMMENT 'metrics summary',
  `properties` mediumtext COMMENT 'task properties',
  PRIMARY KEY (`process_id`,`task_id`),
  KEY `table_index` (`table_id`,`process_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Optimize task basic information'

This issue is related to #2115

Parent issue

#2114

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:subtask Subtask of another issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants