Comments (1)
问题:
周期任务之前的执行人是绑死周期任务的创建者,目前需要优化将周期任务得执行人改为周期任务得更新人,但是对于pipeline引擎层没有editor这个概念
方案:
在修改周期任务的时候,同时把PipelinePeriodicTask这张表的creator修改为周期任务的editor,因为周期任务执行pipelineinstance将PipelinePeriodicTask的creator跟creator绑定
def partial_update(self, request, *args, **kwargs):
instance = self.get_object()
... ...
with transaction.atomic():
instance.editor = request.user.username
instance.save(update_fields=["editor", "edit_time"])
instance.task.creator = request.user.username
instance.task.save()
影响:
这种修改会出现一种问题,a用户创建两个周期任务,上线后b用户修改了任务1没有修改任务2,结果任务1执行人是吧b,任务2执行人a,可能会让用户感觉混乱
任务1. creator: a, updator: b, excutor: b
任务2. creator: a, updator: "",excutor: a``
from bk-sops.
Related Issues (20)
- 分发本地文件插件放开在公共流程中的上传限制
- fix:【3.32.0】独立子流程终止子流程任务后,对应节点详情无法加载 HOT 1
- fix:【3.32.0】独立子流任务尚未执行至网关节点时,点击网关节点,节点详情无法渲染
- fix:【3.32.0】独立子流程执行任务时,子流程节点失败后跳过引起父流程任务流转状态与实际不符
- 打开节点详情面板抽屉时,需要一直保持小画布的高度
- fix:【3.32.0】独立子流程任务节点操作后,节点详情没有渲染
- fix:【3.32.0】未执行的独立子流程节点,点击画布网关条件,节点树渲染失败,对应网关条件配置不展示
- 节点管理插件支持安装通道
- 周期任务,所有开启的周期任务一起排到前列
- 【jellyfish】草稿保存时间不准
- 运营数据支持多选和导出 HOT 1
- 标准运维-节点管理(Nodeman)-插件操作- bk-collector 版本刷不出来
- 配置平台(CMDB) 相关插件支持 云区域:IP
- 报错后重试, 脚本中的 ${1} 被渲染成了 1
- 公共流程无法重新执行,提示无权限
- create_task api execute_task_nodes_id 传参时两次 replace_id 导致报错
- gse 1.0 接口下线切换
- 第三方插件支持配置超时时间后主动失败机制,防止因插件实现不合理一直在轮询
- 【标准运维+蓝盾】蓝盾需要标准运维的插件!
- 系统任务执行状态自监控能力支持
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bk-sops.