PowerJob icon indicating copy to clipboard operation
PowerJob copied to clipboard

:sparkles: TaskContext 新增expectTriggerTime字段,用来传输该任务实际运行的数据周期。

Open yuhan0501 opened this issue 2 years ago • 0 comments

What is the purpose of the change

#898 在重跑实例的时候,TaskContext 能够获取到这个实例首次被触发的时间。

Brief changelog

1.TaskContext 新增expectTriggerTime字段 2.修改其余各处需要给 TaskContext 赋值的地方

Verifying this change

已经自测通过: image

Do I need to test? Has testing been completed? 已经完成测试 Test method? 1.运行一个任务 2.在实例列表重新运行这个实例 3.观察收到的expectTriggerTime是否为首次任务运行的时间

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 3 checklist before request the community to review your PR.

  • [x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • [x] Follow the git commit specification
    • feat: xxx -> The feat type is used to identify production changes related to new backward-compatible abilities or functionality.
    • perf: xxx -> The perf type is used to identify production changes related to backward-compatible performance improvements.
    • fix: xxx -> The fix type is used to identify production changes related to backward-compatible bug fixes.
    • docs: xxx -> The docs type is used to identify documentation changes related to the project - whether intended externally for the end users (in case of a library) or internally for the developers.
    • test: xxx -> The test type is used to identify development changes related to tests - such as refactoring existing tests or adding new tests.
    • refactor: xxx -> The refactor type is used to identify development changes related to modifying the codebase, which neither adds a feature nor fixes a bug - such as removing redundant code, simplifying the code, renaming variables, etc.

yuhan0501 avatar Apr 17 '24 18:04 yuhan0501