当前位置:网站首页>Dolphin scheduler uses system time
Dolphin scheduler uses system time
2022-06-28 09:25:00 【Programming enthusiast Xiong Lang】
1、DolphinScheduler Custom parameters ( Braces and brackets ):
( One )、 User defined parameters :${
Parameter name }
( Two )、 User defined time parameters :$[yyyyMMddHHmmss], Can be any combination $[yyyy-MM-dd HH:mm:ss]
( 3、 ... and )、 System time parameters ( When supplementing data, you need to use ):
2、 usage ( Year, month, day, hour, minute and second can be added or subtracted separately , After splicing ):
( One )、add_months() Month of addition and subtraction , Addition and subtraction 12 Month is the year , Format can be said yyyyMMdd,yyyyMM,yyyy
after N year :$[add_months(yyyyMMdd,12*N)]
Such as :$[add_months(20220624,12*2)] result :20240624
front N year :$[add_months(yyyyMMdd,-12*N)]
Such as :$[add_months(20220624,-12*2)] result :20200624
after N month :$[add_months(yyyyMMdd,N)]
Such as :$[add_months(20220624,2)] result :20220824
front N month :$[add_months(yyyyMMdd,-N)]
Such as :$[add_months(20220624,-2)] result :20200424
( Two )、 direct ± It means adding or subtracting days , Addition and subtraction 7 A day is a week , Format can be said yyyyMMdd,yyyyMM,yyyy
after N Zhou :$[yyyyMMdd+7*N]
Such as :$[20220624+7*2] result :20220708
front N Zhou :$[yyyyMMdd-7*N]
Such as :$[20220624-7*2] result :20220610
after N God :$[yyyyMMdd+N]
Such as :$[20220624+2] result :20220626
front N God :$[yyyyMMdd-N]
Such as :$[20220624-2] result :20220622
( 3、 ... and )、 Minutes and seconds ± It's addition and subtraction, and it's also heaven , Days divided by 24 Hours , The front one counts as hours , Divided by 60 Represents minutes
after N Hours :$[HHmmss+N/24]
Such as :$[14:34:30+2/24] result :16:34:30
front N Hours :$[HHmmss-N/24]
Such as :$[14:34:30-2/24] result :12:34:30
after N minute :$[HHmmss+N/24/60]
Such as :$[14:34:30+2/24/60] result :14:36:30
front N minute :$[HHmmss-N/24/60]
Such as :$[14:34:30-2/24/60] result :14:32:30
( Four )、 Even if the format is just yyyy,yyyyMM,± It is also the addition and subtraction of days ,yyyy,yyyyMM Only the output format is similar to minutes and seconds
front N Days and months :$[yyyyMM-N]
Such as :$[202206-1] result :202206
Current system time 20220624, The result is 20220623, Be careful to cross the moon , year , Such as 20220701, The result is 202206
front N Minutes :$[HHmm-N/24/60]
Such as :$[14:34-2/24/60] result :14:32
( 5、 ... and )、 Parameters used for supplementary data
${
system.biz.date} : The day before the scheduled time of daily scheduling instance , The format is yyyyMMdd, When supplementing data , This date +1
${
system.biz.curdate} : Scheduled time of daily scheduling instance , The format is yyyyMMdd, When supplementing data , This date +1
${
system.datetime} : Scheduled time of daily scheduling instance , The format is yyyyMMddHHmmss, When supplementing data , This date +1
Write it like this , The scheduled task processes yesterday's data , When filling in data , If the time of data supplement is 20220624,${system.biz.date} This value right here is 20220624, Normal scheduling , This value will be 20220623
边栏推荐
猜你喜欢
Ingersoll Rand panel maintenance IR Ingersoll Rand microcomputer controller maintenance xe-145m
JVM系列(2)——垃圾回收
1182:合影效果
Assertions used in the interface automation platform
rman備份報ORA-19809 ORA-19804
理解IO模型
Chrome devtools
Basic knowledge of hard disk (head, track, sector, cylinder)
Boundary value analysis method for learning basic content of software testing (2)
Linux下安装redis 、Windows下安装redis(超详细图文教程)
随机推荐
A strange execution plan. One table in the association query is not associated with any other tables
Common test method used by testers --- orthogonal method
1182: effets de la photo de groupe
Resource scheduling and task scheduling of spark
股票 停牌
如何实现基于 RADIUS 协议的双因子认证 MFA?
Redis5.0 slot migration, free play (single machine migration cluster)
How to reduce the risk of project communication?
"Jianzhi offer" -- Interview Question 4: finding two-dimensional arrays
Machine virtuelle 14 installer win7 (tutoriel)
基于宽表的数据建模
异常处理4种方法
The concept of "tree structure" perfectly interprets the primary and secondary of things
Ingersoll Rand面板维修IR英格索兰微电脑控制器维修XE-145M
Loggerfactory uses log4j Parameter introduction of properties
Implementation of single sign on
Two interview demo
PMP考试重点总结七——监控过程组(1)
How to solve the problem of port number occupation
Find the total number of 1 appearing in the integer 1-N and the number of 1 in the binary of the integer