wanyaoqi
58a20e4bf4
fix(worker): policy and task worker count configurable ( #15716 )
2023-01-05 22:37:14 +08:00
ioito
6d2564e84a
fix(notify): add panic notify
2022-03-01 17:21:24 +08:00
rainzm
58a5f23238
fix(cloudcommon): splice notifyurl correctly
2022-01-27 12:15:43 +08:00
Qu Xuan
f68567e28c
fix(region): optimized validate delete condition query
2021-09-23 10:00:05 +08:00
Qu Xuan
7b845d17c7
fix(common): dump task info when stucking
2021-04-26 10:45:38 +08:00
rainzm
520fae50a6
fix(region): use special localtask to run time-consuming provider synchronization task
...
CloudProviderSyncInfoTask will local cloudprovider. Make locaktask run
time-consuming task can avoid holding locks for a long time.
2021-04-23 17:01:12 +08:00
rainzm
f7add55303
feat(cloudcommon): set TaskNotifyUrl in GetTaskRequestHeader
...
To support cross-service task callbacks, you must set TaskNotifyUrl,
which is automatically added to TaskRequestHeader here
2021-04-07 17:01:08 +08:00
Qu Xuan
74eeb43e4d
fix(region): avoid worker discarded after state unchanged
2021-01-27 14:57:27 +08:00
Qiu Jian
4043cd8342
fix(taskman): use admin token if task userCred token expired
...
Use admin credential token if task cached userCred token expired
2020-12-20 00:43:34 +08:00
Yousong Zhou
da4c2dcaa4
fix(taskman): SSubTask: set model manager
2020-11-30 23:09:55 +08:00
Qu Xuan
5cba23d8cf
fix: add panic log for worker task
2020-11-27 19:36:44 +08:00
Qiu Jian
4431acde83
fix:
...
1. server generate name should be historically unique
2. ipaddr of a batch of server is in the same order as generated name
2020-11-05 00:21:12 +08:00
rainzm
e45ddaeb99
feat: inherit lang from ctx fro Task
2020-09-23 21:19:57 +08:00
Jian Qiu
3ccf78ae7d
fix: server purge may fail ( #7696 )
...
Co-authored-by: Qiu Jian <qiujian@yunionyun.com >
2020-09-01 10:18:37 +08:00
Qu Xuan
6477e0e140
fix: avoid nil pointer
2020-07-30 11:23:36 +08:00
Jian Qiu
ba292dfedc
fix: use json to store task error message ( #7351 )
...
Co-authored-by: Qiu Jian <qiujian@yunionyun.com >
2020-07-30 10:34:32 +08:00
wanyaoqi
a677f24351
- add precheck for perform action
...
- auto switch to backup
- add sync cleand schedule cache
- add reconcile with backup
- add manual reconcile backup
2020-07-22 20:38:36 +08:00
Yousong Zhou
de1e1b1008
cloudcommon: taskman: fix table insert
...
Fix the following error
run error: reflect: NumField of non-struct type *taskman.STask
Fixes 08cd41b60d ("cloudcommon: taskman: SetModelManager")
Reported-by: Qu Xuan <quxuan@yunionyun.com >
2020-06-30 11:54:41 +08:00
Yousong Zhou
08cd41b60d
cloudcommon: taskman: SetModelManager
2020-06-29 14:44:59 +08:00
Zexi Li
9f4d4a450e
refactor ITableSpec signature with context
2020-06-08 11:31:00 +08:00
Qiu Jian
bdfa99b0b6
fix: server change config failed due to quota recode
2019-12-16 21:03:52 +08:00
Qiu Jian
3dba5360d7
quota recode
2019-12-12 11:31:41 +08:00
Qiu Jian
c822b036ca
fix: not trauncating task errors
2019-07-25 22:19:00 +08:00
Qiu Jian
927f176d3e
fix: clear pending-delete when sched_fail
2019-07-23 23:41:47 +08:00
Qiu Jian
5a272fd330
fix: task usercred should be utf8 charset
2019-07-11 12:07:22 +08:00
Qiu Jian
a6207a8ac7
hotfix: support scope list filter, resolve filter conflict
2019-06-04 23:27:55 +08:00
Jian Qiu
81b9cac556
fix: misc 3level priviliges bugfixes ( #1026 )
...
* fix: misc 3level priviliges bugfixes
* misc bugfixes
* misc bugfixes
2019-06-02 08:05:11 +08:00
Qiu Jian
b7027934db
feature: 3-level policies, system/domain/project
2019-05-31 13:56:02 +08:00
wanyaoqi
9722654ff4
misc fix:
...
- fix undeploy backup guest
- fix host service cron job
- task add recover
2019-05-23 18:35:59 +08:00
Qiu Jian
2efc5e641e
fix: add keystone initialization procedures
2019-05-17 13:54:29 +08:00
Qiu Jian
d6956095f8
fix: delete servers that has been removed results in delete_failed
...
status
2019-04-21 00:01:51 +08:00
Yousong Zhou
3b2677acd1
tasks: 改善查询语句
...
- 索引简化,obj_id的区分度非常高,且在QueryTasksOfObject()等相关的查询中是确定出现的
- obj_name可认为被obj_id唯一确定
- created_at若出现可假设被MySQL Index Merge优化
- stage的值是可枚举的
- Join taskobjects_tbl时,避免使用子查询查全表
- 使用Union合并两个查询结果
2019-04-17 14:58:50 +00:00
屈轩
bf7a6a2b30
移除重复代码 ( #359 )
2019-04-12 16:58:08 +08:00
屈轩
6a5dbbf237
增加判断subtask准确度 ( #352 )
2019-04-12 14:59:09 +08:00
屈轩
dd7f7c9bf9
避免guest状态出现中间ready的情况 ( #296 )
2019-04-10 11:20:08 +08:00
Jian Qiu
316335267a
improve server-list performance ( #193 )
...
* improve server-list performance
FetchCustomizeColumns that fetch extra fields for all rows 3. separate
read and write http request session
* update vendor
* update: optimize multi-column indexes
2019-04-03 20:24:28 +08:00
Qiu Jian
004d9b6f95
update copyright headers of all source
2019-03-29 14:47:48 +08:00
Qiu Jian
8ef19141a2
add more optimization
2019-03-29 00:42:23 +08:00
Yousong Zhou
4c82dae39b
Merge remote-tracking branch 'origin/release/2.6.0' into bugfix/yousong-goimports-270
2019-03-13 13:33:51 +00:00
Yousong Zhou
8fe4f2ec98
treewide: group imports with goimports
...
./goimports -w -local yunion.io/x/onecloud/ -corp yunion.io/x/ $GOPATH/src/yunion.io/x/onecloud/{cmd,pkg}
2019-03-13 10:46:12 +00:00
Qiu Jian
4e9eab8ee7
Merge branch 'release/2.6.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20190313-2.7.0
...
Conflicts:
pkg/cloudcommon/db/taskman/tasks.go
2019-03-13 16:32:18 +08:00
Qiu Jian
f7c61a9750
fix: 1. usage hide system servers 2. host undo convert shows wrong
...
status
2019-03-12 13:39:22 +08:00
Qiu Jian
8eb4a74c8b
Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-sync-with-lock
...
Conflicts:
pkg/compute/guestdrivers/base.go
2019-03-06 01:39:17 +08:00
wanyaoqi
46e85d5249
kvm guest support hotplug cpu mem, fix hmp monitor
2019-03-05 14:29:12 +08:00
Qiu Jian
ef197ca3d0
improvements: autonomously adjust sync interval according to resources in region
2019-03-05 02:35:20 +08:00
Qiu Jian
abb4181871
skip objects that is undergoing a task
2019-03-04 14:08:15 +08:00
邱剑
0edeb53d28
update models with db.Update interface
2019-02-22 12:06:13 +08:00
Qiu Jian
8554d13c4a
make fmt
2019-02-16 15:17:31 +08:00
Qiu Jian
066d155a16
fix: logger did not record start time of events
2019-02-16 13:47:18 +08:00
Qiu Jian
df41b7cdcd
use separate worker for long running tasks, such as ImageConvertTask,
...
ImageCheckTask, CloudProviderSyncInfoTask
2018-12-27 16:19:24 +08:00