delay("<PLUSET>1h</PLUSET>") {
# Do something
}
delay("<PLUSET>5m</PLUSET>") {
# Do something
}
delay("<PLUSET>300s</PLUSET>") {
# Do something
}
irods@irods:/rules/tests$ irule -F delayedExecTest.r "*pluset='1h'"Current time is 2018-08-09:14:02:58. Adding to queue with delay of 1h
irods@irods:/rules/tests$ iqstat -alPending rule-executionsid: 10231name: # Write delayed rodsLog message msiWriteRodsLog("This message should appear *pluset after *strtime", 0);
rei_file_path: /var/lib/irods/config/packedRei/rei.rods.2052242976user_name: rodsaddress:time: 1533816179 : 2018-08-09.14:02:59frequency:priority:estimated_exe_time:notification_addr:last_exe_time:exec_status:
### output in rodsLog:
Aug 09 14:03:26 irods /var/lib/irods/log/rodsLog.2018.08.06: Aug 9 14:03:26 pid:2245 NOTICE: msiWriteRodsLog message: This message should appear 1h after 2018-08-09:14:02:58Aug 09 14:03:34 irods /var/lib/irods/log/reLog.2018.08.06: NOTICE: postProcRunRuleExec: exec of 10231 done
irods@irods:/rules/tests$ irule -F delayedExecTest.r "*pluset='5m'"Current time is 2018-08-09:14:03:28. Adding to queue with delay of 5mirods@irods:/rules/tests$ iqstat -alPending rule-executionsid: 10232name: # Write delayed rodsLog message msiWriteRodsLog("This message should appear *pluset after *strtime", 0);
rei_file_path: /var/lib/irods/config/packedRei/rei.rods.3577188242user_name: rodsaddress:time: 1533816213 : 2018-08-09.14:03:33frequency:priority:estimated_exe_time:notification_addr:last_exe_time:exec_status:
### output in rodsLog:
Aug 09 14:03:56 irods /var/lib/irods/log/rodsLog.2018.08.06: Aug 9 14:03:56 pid:2258 NOTICE: msiWriteRodsLog message: This message should appear 5m after 2018-08-09:14:03:28Aug 09 14:04:00 irods /var/lib/irods/log/reLog.2018.08.06: NOTICE: postProcRunRuleExec: exec of 10232 doneirods@irods:/rules/tests$ irule -F delayedExecTest.r "*pluset='300s'"Current time is 2018-08-09:14:04:01. Adding to queue with delay of 300s
irods@irods:/rules/tests$ iqstat -alPending rule-executionsid: 10233name: # Write delayed rodsLog message msiWriteRodsLog("This message should appear *pluset after *strtime", 0);
rei_file_path: /var/lib/irods/config/packedRei/rei.rods.2655924912user_name: rodsaddress:time: 1533816541 : 2018-08-09.14:09:01frequency:priority:estimated_exe_time:notification_addr:last_exe_time:exec_status:
### output in rodsLog:
Aug 09 14:09:28 irods /var/lib/irods/log/rodsLog.2018.08.06: Aug 9 14:09:28 pid:2335 NOTICE: msiWriteRodsLog message: This message should appear 300s after 2018-08-09:14:04:01Aug 09 14:09:35 irods /var/lib/irods/log/reLog.2018.08.06: NOTICE: postProcRunRuleExec: exec of 10233 done--
--
"iRODS: the Integrated Rule-Oriented Data-management System; A community driven, open source, data grid software solution" https://www.irods.org
iROD-Chat: http://groups.google.com/group/iROD-Chat
---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.