点击蓝字 关注我们

$[add_months(yyyyMMdd,-1)]


后 N 年:$[add_months(yyyyMMdd,12*N)] 前 N 年:$[add_months(yyyyMMdd,-12*N)] 后 N 月:$[add_months(yyyyMMdd,N)] 前 N 月:$[add_months(yyyyMMdd,-N)]
后 N 周:$[yyyyMMdd+7*N] 前 N 周:$[yyyyMMdd-7*N] 后 N 天:$[yyyyMMdd+N] 前 N 天:$[yyyyMMdd-N] 后 N 小时:$[HHmmss+N/24] 前 N 小时:$[HHmmss-N/24] 后 N 分钟:$[HHmmss+N/24/60] 前 N 分钟:$[HHmmss-N/24/60]
时间函数扩展public interface TimePlaceholderResolverExpandService {boolean timeFunctionNeedExpand(String placeholderName);String timeFunctionExtension(Integer processInstanceId, String timeZone, String placeholderName);}
时间函数默认扩展实现@Componentpublic class TimePlaceholderResolverExpandServiceImpl implements TimePlaceholderResolverExpandService {@Overridepublic boolean timeFunctionNeedExpand(String placeholderName) {return false;}@Overridepublic String timeFunctionExtension(Integer processInstanceId, String timeZone, String placeholderName) {return null;}}
自定义函数实现public class CustomerTimePlaceholderResolverExpandServiceImpl implements TimePlaceholderResolverExpandService {@Overridepublic boolean timeFunctionNeedExpand(String placeholderName) {// Increase the identification of extension functionsreturn true;}@Overridepublic String timeFunctionExtension(FunctionExpandContent functionExpandContent) {try {// Add the analysis and calculation logic of user-defined functions} catch (Exception e) {log.error("time function extension error{}", functionExpandContent, e);}return null;}}
时间函数扩展优化public interface TimePlaceholderResolverExpandService {boolean timeFunctionNeedExpand(String placeholderName);String timeFunctionExtension(FunctionExpandContent functionExpandContent);}public class FunctionExpandContent {private boolean global;private String parameters;private Integer processInstanceId;private String timezone;private String placeholderName;private MapparamsMap;}
参与贡献
随着国内开源的迅猛崛起,Apache DolphinScheduler 社区迎来蓬勃发展,为了做更好用、易用的调度,真诚欢迎热爱开源的伙伴加入到开源社区中来,为中国开源崛起献上一份自己的力量,让本土开源走向全球。

参与 DolphinScheduler 社区有非常多的参与贡献的方式,包括:

贡献第一个PR(文档、代码) 我们也希望是简单的,第一个PR用于熟悉提交的流程和社区协作以及感受社区的友好度。
社区汇总了以下适合新手的问题列表:https://github.com/apache/dolphinscheduler/issues/5689
非新手问题列表:https://github.com/apache/dolphinscheduler/issues?q=is%3Aopen+is%3Aissue+label%3A%22volunteer+wanted%22
如何参与贡献链接:https://dolphinscheduler.apache.org/zh-cn/community/development/contribute.html
来吧,DolphinScheduler开源社区需要您的参与,为中国开源崛起添砖加瓦吧,哪怕只是小小的一块瓦,汇聚起来的力量也是巨大的。
参与开源可以近距离与各路高手切磋,迅速提升自己的技能,如果您想参与贡献,我们有个贡献者种子孵化群,可以添加社区小助手微信(Leonard-ds) ,手把手教会您( 贡献者不分水平高低,有问必答,关键是有一颗愿意贡献的心 )。

添加社区小助手微信(Leonard-ds)
添加小助手微信时请说明想参与贡献。
来吧,开源社区非常期待您的参与。
☞在 AWS 上部署无服务器 Apache DolphinScheduler 任务调度系统
☞DolphinScheduler 快速构建 Hugging Face 文本分类工作流,基于工作流的机器学习训练部署太强了!
☞最新性能测试 | Apache DolphinScheduler 每分钟调度任务并发是 Apache Airflow 2 倍





