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

Add a control layer for submitting tasks to stream back results #2689

Closed
wants to merge 6 commits into from

Conversation

yangzehan
Copy link
Contributor

Without changing the current interface, a submitask2 has been added for SSE to stream sql query results。
在不改变现在的接口的情况下增加了一个submitask2用于SSE流式传输sql查询结果
可能有一些地方需要更改 还不是很完善。

Copy link
Contributor

@aiwenmo aiwenmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run: mvn spotless:apply

Comment on lines +66 to +67
public Result<JobResult> submitTask2(@ProcessId @RequestParam Integer id) throws Exception {
JobResult jobResult =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should extend method named debugTask.

Comment on lines +21 to 23
username: ${MYSQL_USERNAME:root}
password: ${MYSQL_PASSWORD:mysql_d2E3wH}
driver-class-name: com.mysql.cj.jdbc.Driver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove useless changes.

Comment on lines +18 to 19
active: ${DB_ACTIVE:mysql} #[h2,mysql,pgsql]
include: jmx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove useless changes.

Comment on lines 20 to 22
export default {
'return.resul':'结果 {{result}}',
'button.add': 'Add',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use English

Comment on lines 219 to 221
);
console.log(currentData)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove debug code.

@yangzehan yangzehan closed this Dec 20, 2023
@yangzehan yangzehan deleted the test branch December 20, 2023 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants