@nocobase/plugin-async-task-manager 2.0.0-alpha.9 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/common/collections/asyncTasks.d.ts +2 -0
- package/dist/common/collections/asyncTasks.js +2 -0
- package/dist/common/constants.d.ts +2 -2
- package/dist/common/constants.js +1 -1
- package/dist/externalVersion.js +7 -6
- package/dist/locale/de-DE.json +31 -31
- package/dist/locale/en-US.json +42 -1
- package/dist/locale/es-ES.json +45 -0
- package/dist/locale/fr-FR.json +45 -0
- package/dist/locale/hu-HU.json +45 -0
- package/dist/locale/id-ID.json +45 -0
- package/dist/locale/it-IT.json +31 -31
- package/dist/locale/ja-JP.json +45 -0
- package/dist/locale/ko-KR.json +45 -0
- package/dist/locale/nl-NL.json +44 -45
- package/dist/locale/pt-BR.json +45 -0
- package/dist/locale/ru-RU.json +45 -0
- package/dist/locale/tr-TR.json +45 -0
- package/dist/locale/uk-UA.json +45 -0
- package/dist/locale/vi-VN.json +45 -0
- package/dist/locale/zh-CN.json +33 -31
- package/dist/locale/zh-TW.json +45 -0
- package/dist/server/base-concurrency-monitor.d.ts +20 -0
- package/dist/server/base-concurrency-monitor.js +63 -0
- package/dist/server/base-task-manager.d.ts +16 -1
- package/dist/server/base-task-manager.js +88 -30
- package/dist/server/command-task-type.d.ts +1 -0
- package/dist/server/command-task-type.js +54 -4
- package/dist/server/interfaces/concurrency-monitor.d.ts +16 -0
- package/dist/server/interfaces/concurrency-monitor.js +24 -0
- package/dist/server/task-type.js +3 -2
- package/package.json +4 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Actions": "작업",
|
|
3
|
+
"Cancel": "취소",
|
|
4
|
+
"Cancelled": "취소됨",
|
|
5
|
+
"Cancelling": "취소 중",
|
|
6
|
+
"Close": "닫기",
|
|
7
|
+
"Completed": "완료됨",
|
|
8
|
+
"Confirm": "확인",
|
|
9
|
+
"Confirm cancel": "취소 확인",
|
|
10
|
+
"Confirm to cancel this task?": "취소를 확인하시겠습니까?",
|
|
11
|
+
"Created at": "생성일",
|
|
12
|
+
"Data": "데이터",
|
|
13
|
+
"Download": "다운로드",
|
|
14
|
+
"Error Details": "오류 세부정보",
|
|
15
|
+
"Error code": "오류 코드",
|
|
16
|
+
"Error details": "오류 세부정보",
|
|
17
|
+
"Export": "내보내기",
|
|
18
|
+
"Export {collection} attachments": "{collection} 첨부 파일 내보내기",
|
|
19
|
+
"Export {collection} data": "{collection} 데이터 내보내기",
|
|
20
|
+
"Failed": "실패",
|
|
21
|
+
"Import": "가져오기",
|
|
22
|
+
"Import completed": "가져오기 완료",
|
|
23
|
+
"Import details": "세부 정보 가져오기",
|
|
24
|
+
"Import result": "가져오기 결과",
|
|
25
|
+
"Import summary": "가져오기 요약",
|
|
26
|
+
"Import {collection} data": "{collection} 데이터 가져오기",
|
|
27
|
+
"ImportResult": "가져오기 결과",
|
|
28
|
+
"Imported": "가져옴",
|
|
29
|
+
"OK": "확인",
|
|
30
|
+
"Processing": "처리 중",
|
|
31
|
+
"Skipped records": "건너뛴 레코드",
|
|
32
|
+
"Status": "상태",
|
|
33
|
+
"Successfully imported": "성공적으로 가져왔습니다",
|
|
34
|
+
"Task": "작업",
|
|
35
|
+
"Task cancelled": "작업이 취소되었습니다",
|
|
36
|
+
"Task completed": "작업 완료",
|
|
37
|
+
"Task failed": "작업 실패",
|
|
38
|
+
"Task result": "작업 결과",
|
|
39
|
+
"Total records": "총 레코드",
|
|
40
|
+
"Type": "유형",
|
|
41
|
+
"Unknown error": "알 수 없는 오류",
|
|
42
|
+
"Updated records": "업데이트된 레코드",
|
|
43
|
+
"View result": "결과 보기",
|
|
44
|
+
"Waiting": "대기 중"
|
|
45
|
+
}
|
package/dist/locale/nl-NL.json
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
2
|
+
"Actions": "Acties",
|
|
3
|
+
"Cancel": "Annuleren",
|
|
4
|
+
"Cancelled": "Geannuleerd",
|
|
5
|
+
"Cancelling": "Annuleren",
|
|
6
|
+
"Close": "Sluiten",
|
|
7
|
+
"Completed": "Voltooid",
|
|
8
|
+
"Confirm": "Bevestigen",
|
|
9
|
+
"Confirm cancel": "Bevestig annuleren",
|
|
10
|
+
"Confirm to cancel this task?": "Weet je zeker dat je deze taak wilt annuleren?",
|
|
11
|
+
"Created at": "Aangemaakt op",
|
|
12
|
+
"Data": "Data",
|
|
13
|
+
"Download": "Downloaden",
|
|
14
|
+
"Error Details": "Foutdetails",
|
|
15
|
+
"Error code": "Foutcode",
|
|
16
|
+
"Error details": "Foutdetails",
|
|
17
|
+
"Export": "Exporteer",
|
|
18
|
+
"Export {collection} attachments": "Exporteer {collection} bijlagen",
|
|
19
|
+
"Export {collection} data": "Exporteer {collection} gegevens",
|
|
20
|
+
"Failed": "Mislukt",
|
|
21
|
+
"Import": "Importeer",
|
|
22
|
+
"Import completed": "Import voltooid: {{success}} records geïmporteerd, {{updated}} records bijgewerkt, {{skipped}} records overgeslagen, totaal {{total}} records",
|
|
23
|
+
"Import details": "{{success}} records zijn geïmporteerd, {{updated}} records zijn bijgewerkt, {{skipped}} records zijn overgeslagen, totaal {{total}} records",
|
|
24
|
+
"Import result": "Importresultaat",
|
|
25
|
+
"Import summary": "Importeer {{success}}/{{total}}",
|
|
26
|
+
"Import {collection} data": "Importeer {collection} gegevens",
|
|
27
|
+
"ImportResult": "{{success}} records zijn geïmporteerd, {{updated}} records zijn bijgewerkt, {{skipped}} records zijn overgeslagen, totaal {{total}} records",
|
|
28
|
+
"Imported": "{{count}}/{{total}}",
|
|
29
|
+
"OK": "OK",
|
|
30
|
+
"Processing": "Verwerken",
|
|
31
|
+
"Skipped records": "Overgeslagen records",
|
|
32
|
+
"Status": "Status",
|
|
33
|
+
"Successfully imported": "Succesvol geïmporteerd",
|
|
34
|
+
"Task": "Taak",
|
|
35
|
+
"Task cancelled": "Taak geannuleerd",
|
|
36
|
+
"Task completed": "Taak voltooid",
|
|
37
|
+
"Task failed": "Taak mislukt",
|
|
38
|
+
"Task result": "Taakresultaat",
|
|
39
|
+
"Total records": "Totaal aantal records",
|
|
40
|
+
"Type": "Type",
|
|
41
|
+
"Unknown error": "Onbekende fout",
|
|
42
|
+
"Updated records": "Bijgewerkte records",
|
|
43
|
+
"View result": "Toon",
|
|
44
|
+
"Waiting": "Wachten"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Actions": "Actions",
|
|
3
|
+
"Cancel": "Cancel",
|
|
4
|
+
"Cancelled": "Cancelled",
|
|
5
|
+
"Cancelling": "Cancelling",
|
|
6
|
+
"Close": "Close",
|
|
7
|
+
"Completed": "Completed",
|
|
8
|
+
"Confirm": "Confirm",
|
|
9
|
+
"Confirm cancel": "Confirm cancel",
|
|
10
|
+
"Confirm to cancel this task?": "Confirm to cancel this task?",
|
|
11
|
+
"Created at": "Created at",
|
|
12
|
+
"Data": "Data",
|
|
13
|
+
"Download": "Download",
|
|
14
|
+
"Error Details": "Error Details",
|
|
15
|
+
"Error code": "Error code",
|
|
16
|
+
"Error details": "Error details",
|
|
17
|
+
"Export": "Export",
|
|
18
|
+
"Export {collection} attachments": "{collection} attachments export",
|
|
19
|
+
"Export {collection} data": "{collection} data export",
|
|
20
|
+
"Failed": "Failed",
|
|
21
|
+
"Import": "Import",
|
|
22
|
+
"Import completed": "Import completed",
|
|
23
|
+
"Import details": "Import details",
|
|
24
|
+
"Import result": "Import result",
|
|
25
|
+
"Import summary": "Import summary",
|
|
26
|
+
"Import {collection} data": "{collection} data import",
|
|
27
|
+
"ImportResult": "ImportResult",
|
|
28
|
+
"Imported": "Imported",
|
|
29
|
+
"OK": "OK",
|
|
30
|
+
"Processing": "Processing",
|
|
31
|
+
"Skipped records": "Skipped records",
|
|
32
|
+
"Status": "Status",
|
|
33
|
+
"Successfully imported": "Successfully imported",
|
|
34
|
+
"Task": "Task",
|
|
35
|
+
"Task cancelled": "Task cancelled",
|
|
36
|
+
"Task completed": "Task completed",
|
|
37
|
+
"Task failed": "Task failed",
|
|
38
|
+
"Task result": "Task result",
|
|
39
|
+
"Total records": "Total records",
|
|
40
|
+
"Type": "Type",
|
|
41
|
+
"Unknown error": "Unknown error",
|
|
42
|
+
"Updated records": "Updated records",
|
|
43
|
+
"View result": "View result",
|
|
44
|
+
"Waiting": "Waiting"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Actions": "Действия",
|
|
3
|
+
"Cancel": "Отменить",
|
|
4
|
+
"Cancelled": "Отменено",
|
|
5
|
+
"Cancelling": "Отмена",
|
|
6
|
+
"Close": "Закрыть",
|
|
7
|
+
"Completed": "Завершено",
|
|
8
|
+
"Confirm": "Подтвердить",
|
|
9
|
+
"Confirm cancel": "Подтвердить отмену",
|
|
10
|
+
"Confirm to cancel this task?": "Описание подтверждения отмены",
|
|
11
|
+
"Created at": "Создано",
|
|
12
|
+
"Data": "Данные",
|
|
13
|
+
"Download": "Скачать",
|
|
14
|
+
"Error Details": "Детали ошибки",
|
|
15
|
+
"Error code": "Код ошибки",
|
|
16
|
+
"Error details": "Детали ошибки",
|
|
17
|
+
"Export": "Экспорт",
|
|
18
|
+
"Export {collection} attachments": "Экспорт вложений {collection}",
|
|
19
|
+
"Export {collection} data": "Экспорт данных {collection}",
|
|
20
|
+
"Failed": "Не удалось",
|
|
21
|
+
"Import": "Импорт",
|
|
22
|
+
"Import completed": "Импорт завершен",
|
|
23
|
+
"Import details": "Детали импорта",
|
|
24
|
+
"Import result": "Результат импорта",
|
|
25
|
+
"Import summary": "Сводка импорта",
|
|
26
|
+
"Import {collection} data": "Импорт данных {collection}",
|
|
27
|
+
"ImportResult": "Результат импорта",
|
|
28
|
+
"Imported": "Импортировано",
|
|
29
|
+
"OK": "ОК",
|
|
30
|
+
"Processing": "Обработка",
|
|
31
|
+
"Skipped records": "Пропущенные записи",
|
|
32
|
+
"Status": "Статус",
|
|
33
|
+
"Successfully imported": "Успешно импортировано",
|
|
34
|
+
"Task": "Задача",
|
|
35
|
+
"Task cancelled": "Задача отменена",
|
|
36
|
+
"Task completed": "Задача завершена",
|
|
37
|
+
"Task failed": "Задача не выполнена",
|
|
38
|
+
"Task result": "Результат задачи",
|
|
39
|
+
"Total records": "Всего записей",
|
|
40
|
+
"Type": "Тип",
|
|
41
|
+
"Unknown error": "Неизвестная ошибка",
|
|
42
|
+
"Updated records": "Обновленные записи",
|
|
43
|
+
"View result": "Просмотреть результат",
|
|
44
|
+
"Waiting": "Ожидание"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Actions": "Actions",
|
|
3
|
+
"Cancel": "Cancel",
|
|
4
|
+
"Cancelled": "Cancelled",
|
|
5
|
+
"Cancelling": "Cancelling",
|
|
6
|
+
"Close": "Close",
|
|
7
|
+
"Completed": "Completed",
|
|
8
|
+
"Confirm": "Confirm",
|
|
9
|
+
"Confirm cancel": "Confirm cancel",
|
|
10
|
+
"Confirm to cancel this task?": "Confirm to cancel this task?",
|
|
11
|
+
"Created at": "Created at",
|
|
12
|
+
"Data": "Data",
|
|
13
|
+
"Download": "Download",
|
|
14
|
+
"Error Details": "Error Details",
|
|
15
|
+
"Error code": "Error code",
|
|
16
|
+
"Error details": "Error details",
|
|
17
|
+
"Export": "Export",
|
|
18
|
+
"Export {collection} attachments": "{collection} attachments export",
|
|
19
|
+
"Export {collection} data": "{collection} data export",
|
|
20
|
+
"Failed": "Failed",
|
|
21
|
+
"Import": "Import",
|
|
22
|
+
"Import completed": "Import completed",
|
|
23
|
+
"Import details": "Import details",
|
|
24
|
+
"Import result": "Import result",
|
|
25
|
+
"Import summary": "Import summary",
|
|
26
|
+
"Import {collection} data": "{collection} data import",
|
|
27
|
+
"ImportResult": "ImportResult",
|
|
28
|
+
"Imported": "Imported",
|
|
29
|
+
"OK": "OK",
|
|
30
|
+
"Processing": "Processing",
|
|
31
|
+
"Skipped records": "Skipped records",
|
|
32
|
+
"Status": "Status",
|
|
33
|
+
"Successfully imported": "Successfully imported",
|
|
34
|
+
"Task": "Task",
|
|
35
|
+
"Task cancelled": "Task cancelled",
|
|
36
|
+
"Task completed": "Task completed",
|
|
37
|
+
"Task failed": "Task failed",
|
|
38
|
+
"Task result": "Task result",
|
|
39
|
+
"Total records": "Total records",
|
|
40
|
+
"Type": "Type",
|
|
41
|
+
"Unknown error": "Unknown error",
|
|
42
|
+
"Updated records": "Updated records",
|
|
43
|
+
"View result": "View result",
|
|
44
|
+
"Waiting": "Waiting"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Actions": "Actions",
|
|
3
|
+
"Cancel": "Cancel",
|
|
4
|
+
"Cancelled": "Cancelled",
|
|
5
|
+
"Cancelling": "Cancelling",
|
|
6
|
+
"Close": "Close",
|
|
7
|
+
"Completed": "Completed",
|
|
8
|
+
"Confirm": "Confirm",
|
|
9
|
+
"Confirm cancel": "Confirm cancel",
|
|
10
|
+
"Confirm to cancel this task?": "Confirm to cancel this task?",
|
|
11
|
+
"Created at": "Created at",
|
|
12
|
+
"Data": "Data",
|
|
13
|
+
"Download": "Download",
|
|
14
|
+
"Error Details": "Error Details",
|
|
15
|
+
"Error code": "Error code",
|
|
16
|
+
"Error details": "Error details",
|
|
17
|
+
"Export": "Export",
|
|
18
|
+
"Export {collection} attachments": "{collection} attachments export",
|
|
19
|
+
"Export {collection} data": "{collection} data export",
|
|
20
|
+
"Failed": "Failed",
|
|
21
|
+
"Import": "Import",
|
|
22
|
+
"Import completed": "Import completed",
|
|
23
|
+
"Import details": "Import details",
|
|
24
|
+
"Import result": "Import result",
|
|
25
|
+
"Import summary": "Import summary",
|
|
26
|
+
"Import {collection} data": "{collection} data import",
|
|
27
|
+
"ImportResult": "ImportResult",
|
|
28
|
+
"Imported": "Imported",
|
|
29
|
+
"OK": "OK",
|
|
30
|
+
"Processing": "Processing",
|
|
31
|
+
"Skipped records": "Skipped records",
|
|
32
|
+
"Status": "Status",
|
|
33
|
+
"Successfully imported": "Successfully imported",
|
|
34
|
+
"Task": "Task",
|
|
35
|
+
"Task cancelled": "Task cancelled",
|
|
36
|
+
"Task completed": "Task completed",
|
|
37
|
+
"Task failed": "Task failed",
|
|
38
|
+
"Task result": "Task result",
|
|
39
|
+
"Total records": "Total records",
|
|
40
|
+
"Type": "Type",
|
|
41
|
+
"Unknown error": "Unknown error",
|
|
42
|
+
"Updated records": "Updated records",
|
|
43
|
+
"View result": "View result",
|
|
44
|
+
"Waiting": "Waiting"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Actions": "Actions",
|
|
3
|
+
"Cancel": "Cancel",
|
|
4
|
+
"Cancelled": "Cancelled",
|
|
5
|
+
"Cancelling": "Cancelling",
|
|
6
|
+
"Close": "Close",
|
|
7
|
+
"Completed": "Completed",
|
|
8
|
+
"Confirm": "Confirm",
|
|
9
|
+
"Confirm cancel": "Confirm cancel",
|
|
10
|
+
"Confirm cancel description": "Confirm cancel description",
|
|
11
|
+
"Created at": "Created at",
|
|
12
|
+
"Data": "Data",
|
|
13
|
+
"Download": "Download",
|
|
14
|
+
"Error Details": "Error Details",
|
|
15
|
+
"Error code": "Error code",
|
|
16
|
+
"Error details": "Error details",
|
|
17
|
+
"Export": "Xuất",
|
|
18
|
+
"Export {collection} attachments": "{collection} attachments export",
|
|
19
|
+
"Export {collection} data": "{collection} data export",
|
|
20
|
+
"Failed": "Thất bại",
|
|
21
|
+
"Import": "Nhập",
|
|
22
|
+
"Import completed": "Import completed",
|
|
23
|
+
"Import details": "Import details",
|
|
24
|
+
"Import result": "Import result",
|
|
25
|
+
"Import summary": "Import summary",
|
|
26
|
+
"Import {collection} data": "{collection} data import",
|
|
27
|
+
"ImportResult": "ImportResult",
|
|
28
|
+
"Imported": "Imported",
|
|
29
|
+
"OK": "OK",
|
|
30
|
+
"Processing": "Processing",
|
|
31
|
+
"Skipped records": "Skipped records",
|
|
32
|
+
"Status": "Trạng thái",
|
|
33
|
+
"Successfully imported": "Successfully imported",
|
|
34
|
+
"Task": "Task",
|
|
35
|
+
"Task cancelled": "Task cancelled",
|
|
36
|
+
"Task completed": "Task completed",
|
|
37
|
+
"Task failed": "Task failed",
|
|
38
|
+
"Task result": "Task result",
|
|
39
|
+
"Total records": "Total records",
|
|
40
|
+
"Type": "Loại",
|
|
41
|
+
"Unknown error": "Unknown error",
|
|
42
|
+
"Updated records": "Updated records",
|
|
43
|
+
"View result": "View result",
|
|
44
|
+
"Waiting": "Waiting"
|
|
45
|
+
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Export": "导出",
|
|
3
|
-
"Import": "导入",
|
|
4
|
-
"Data": "数据",
|
|
5
|
-
"Task": "任务",
|
|
6
|
-
"Status": "状态",
|
|
7
2
|
"Actions": "操作",
|
|
8
|
-
"Created at": "创建时间",
|
|
9
|
-
"Type": "类型",
|
|
10
|
-
"Waiting": "正在排队等待...",
|
|
11
|
-
"Processing": "进行中",
|
|
12
|
-
"Completed": "已完成",
|
|
13
|
-
"Failed": "执行失败",
|
|
14
|
-
"Cancelled": "已取消",
|
|
15
3
|
"Cancel": "取消",
|
|
4
|
+
"Cancelled": "已取消",
|
|
16
5
|
"Cancelling": "取消中",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"Confirm cancel": "确认取消",
|
|
20
|
-
"Confirm cancel description": "确定要取消这个任务吗?",
|
|
6
|
+
"Close": "关闭",
|
|
7
|
+
"Completed": "已完成",
|
|
21
8
|
"Confirm": "确定",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
9
|
+
"Confirm cancel": "确认取消",
|
|
10
|
+
"Confirm to cancel this task?": "确定要取消这个任务吗?",
|
|
11
|
+
"Created at": "创建时间",
|
|
12
|
+
"Data": "数据",
|
|
13
|
+
"Download": "下载",
|
|
25
14
|
"Error Details": "错误详情",
|
|
26
|
-
"Close": "关闭",
|
|
27
15
|
"Error code": "错误代码",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
16
|
+
"Error details": "错误详情",
|
|
17
|
+
"Export": "导出",
|
|
18
|
+
"Export {collection} attachments": "导出{collection}附件",
|
|
19
|
+
"Export {collection} data": "导出{collection}记录",
|
|
20
|
+
"Failed": "执行失败",
|
|
21
|
+
"Import": "导入",
|
|
31
22
|
"Import completed": "导入完成:{{success}} 条记录已导入,{{updated}} 条记录已更新,{{skipped}} 条记录已跳过,共 {{total}} 条记录",
|
|
32
|
-
"Import summary": "已导入 {{success}}/{{total}} 条记录",
|
|
33
23
|
"Import details": "成功导入 {{success}} 条,更新 {{updated}} 条,跳过 {{skipped}} 条,共 {{total}} 条",
|
|
24
|
+
"Import result": "导入结果",
|
|
25
|
+
"Import summary": "已导入 {{success}}/{{total}} 条记录",
|
|
26
|
+
"Import {collection} data": "导入{collection}数据",
|
|
27
|
+
"ImportResult": "已导入 {{success}} 条,更新 {{updated}} 条,跳过 {{skipped}} 条,共 {{total}} 条",
|
|
34
28
|
"Imported": "已导入 {{count}}/{{total}}",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
29
|
+
"OK": "确定",
|
|
30
|
+
"Processing": "进行中",
|
|
37
31
|
"Skipped records": "已跳过记录",
|
|
32
|
+
"Status": "状态",
|
|
33
|
+
"Successfully imported": "成功导入",
|
|
34
|
+
"Stop": "停止",
|
|
35
|
+
"Stopping...": "停止中...",
|
|
36
|
+
"Task": "任务",
|
|
37
|
+
"Task cancelled": "任务已取消",
|
|
38
|
+
"Task completed": "任务已完成",
|
|
39
|
+
"Task failed": "任务执行失败",
|
|
40
|
+
"Task result": "任务结果",
|
|
38
41
|
"Total records": "总记录数",
|
|
42
|
+
"Type": "类型",
|
|
43
|
+
"Unknown error": "未知错误",
|
|
44
|
+
"Updated records": "已更新记录",
|
|
39
45
|
"View result": "查看结果",
|
|
40
|
-
"
|
|
41
|
-
"Task result": "任务结果",
|
|
42
|
-
"Export {collection} attachments": "导出{collection}附件",
|
|
43
|
-
"Export {collection} data": "导出{collection}记录",
|
|
44
|
-
"Import {collection} data": "导入{collection}数据"
|
|
46
|
+
"Waiting": "等待中"
|
|
45
47
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Actions": "Actions",
|
|
3
|
+
"Cancel": "Cancel",
|
|
4
|
+
"Cancelled": "Cancelled",
|
|
5
|
+
"Cancelling": "Cancelling",
|
|
6
|
+
"Close": "Close",
|
|
7
|
+
"Completed": "Completed",
|
|
8
|
+
"Confirm": "Confirm",
|
|
9
|
+
"Confirm cancel": "Confirm cancel",
|
|
10
|
+
"Confirm to cancel this task?": "Confirm to cancel this task?",
|
|
11
|
+
"Created at": "Created at",
|
|
12
|
+
"Data": "Data",
|
|
13
|
+
"Download": "Download",
|
|
14
|
+
"Error Details": "Error Details",
|
|
15
|
+
"Error code": "Error code",
|
|
16
|
+
"Error details": "Error details",
|
|
17
|
+
"Export": "Export",
|
|
18
|
+
"Export {collection} attachments": "{collection} attachments export",
|
|
19
|
+
"Export {collection} data": "{collection} data export",
|
|
20
|
+
"Failed": "Failed",
|
|
21
|
+
"Import": "Import",
|
|
22
|
+
"Import completed": "Import completed",
|
|
23
|
+
"Import details": "Import details",
|
|
24
|
+
"Import result": "Import result",
|
|
25
|
+
"Import summary": "Import summary",
|
|
26
|
+
"Import {collection} data": "{collection} data import",
|
|
27
|
+
"ImportResult": "ImportResult",
|
|
28
|
+
"Imported": "Imported",
|
|
29
|
+
"OK": "OK",
|
|
30
|
+
"Processing": "Processing",
|
|
31
|
+
"Skipped records": "Skipped records",
|
|
32
|
+
"Status": "Status",
|
|
33
|
+
"Successfully imported": "Successfully imported",
|
|
34
|
+
"Task": "Task",
|
|
35
|
+
"Task cancelled": "Task cancelled",
|
|
36
|
+
"Task completed": "Task completed",
|
|
37
|
+
"Task failed": "Task failed",
|
|
38
|
+
"Task result": "Task result",
|
|
39
|
+
"Total records": "Total records",
|
|
40
|
+
"Type": "Type",
|
|
41
|
+
"Unknown error": "Unknown error",
|
|
42
|
+
"Updated records": "Updated records",
|
|
43
|
+
"View result": "View result",
|
|
44
|
+
"Waiting": "Waiting"
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { TaskId } from '../common/types';
|
|
10
|
+
import { ConcurrencyMonitor } from './interfaces/concurrency-monitor';
|
|
11
|
+
export declare class BaseConcurrencyMonitor implements ConcurrencyMonitor {
|
|
12
|
+
private _concurrency;
|
|
13
|
+
constructor(_concurrency: number);
|
|
14
|
+
private taskIds;
|
|
15
|
+
idle(): boolean;
|
|
16
|
+
get concurrency(): number;
|
|
17
|
+
set concurrency(concurrency: number);
|
|
18
|
+
increase(taskId: TaskId): boolean;
|
|
19
|
+
decrease(taskId: TaskId): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var base_concurrency_monitor_exports = {};
|
|
28
|
+
__export(base_concurrency_monitor_exports, {
|
|
29
|
+
BaseConcurrencyMonitor: () => BaseConcurrencyMonitor
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(base_concurrency_monitor_exports);
|
|
32
|
+
class BaseConcurrencyMonitor {
|
|
33
|
+
constructor(_concurrency) {
|
|
34
|
+
this._concurrency = _concurrency;
|
|
35
|
+
}
|
|
36
|
+
taskIds = /* @__PURE__ */ new Set();
|
|
37
|
+
idle() {
|
|
38
|
+
return this.taskIds.size < this.concurrency;
|
|
39
|
+
}
|
|
40
|
+
get concurrency() {
|
|
41
|
+
return this._concurrency;
|
|
42
|
+
}
|
|
43
|
+
set concurrency(concurrency) {
|
|
44
|
+
this._concurrency = concurrency;
|
|
45
|
+
}
|
|
46
|
+
increase(taskId) {
|
|
47
|
+
if (this.taskIds.has(taskId)) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
if (this.taskIds.size + 1 > this.concurrency) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
this.taskIds.add(taskId);
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
decrease(taskId) {
|
|
57
|
+
this.taskIds.delete(taskId);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
BaseConcurrencyMonitor
|
|
63
|
+
});
|
|
@@ -11,6 +11,7 @@ import { Logger } from '@nocobase/logger';
|
|
|
11
11
|
import { AsyncTasksManager, CreateTaskOptions } from './interfaces/async-task-manager';
|
|
12
12
|
import { ITask, TaskConstructor, TaskModel } from './interfaces/task';
|
|
13
13
|
import { TaskId, TaskStatus } from '../common/types';
|
|
14
|
+
import { ConcurrencyMode, ConcurrencyMonitor } from './interfaces/concurrency-monitor';
|
|
14
15
|
export declare class BaseTaskManager implements AsyncTasksManager {
|
|
15
16
|
private taskTypes;
|
|
16
17
|
private tasks;
|
|
@@ -19,7 +20,9 @@ export declare class BaseTaskManager implements AsyncTasksManager {
|
|
|
19
20
|
private logger;
|
|
20
21
|
private app;
|
|
21
22
|
private progressThrottles;
|
|
22
|
-
|
|
23
|
+
private concurrencyMonitor;
|
|
24
|
+
get concurrency(): number;
|
|
25
|
+
set concurrency(concurrency: number);
|
|
23
26
|
private idle;
|
|
24
27
|
private onQueueTask;
|
|
25
28
|
private onTaskProgress;
|
|
@@ -40,3 +43,15 @@ export declare class BaseTaskManager implements AsyncTasksManager {
|
|
|
40
43
|
private prepareTask;
|
|
41
44
|
runTask(task: ITask): Promise<void>;
|
|
42
45
|
}
|
|
46
|
+
export declare class ConcurrencyMonitorDelegate implements ConcurrencyMonitor {
|
|
47
|
+
private mode;
|
|
48
|
+
private appConcurrencyMonitor;
|
|
49
|
+
private processConcurrencyMonitor;
|
|
50
|
+
constructor(mode?: ConcurrencyMode, appConcurrencyMonitor?: ConcurrencyMonitor, processConcurrencyMonitor?: ConcurrencyMonitor);
|
|
51
|
+
private get concurrencyMonitor();
|
|
52
|
+
idle(): boolean;
|
|
53
|
+
get concurrency(): number;
|
|
54
|
+
set concurrency(concurrency: number);
|
|
55
|
+
increase(taskId: TaskId): boolean;
|
|
56
|
+
decrease(taskId: TaskId): void;
|
|
57
|
+
}
|