在任务计划程序中安排的作业时间

时间:2022-04-19 02:11:40

I have many talend jobs, I am executing all those jobs in windows scheduler (task scheduler). I need to store the time of those jobs when they scheduled. how I can get the time of that? Please assist me on this.

我有很多talend工作,我在Windows调度程序(任务调度程序)中执行所有这些工作。我需要在他们安排时存储这些工作的时间。我怎么能得到那个时间?请帮助我。

1 个解决方案

#1


0  

Windows Scheduler already stores a list of executed scheduled tasks where you can see the execution of tasks in either the last hour, day, week or 30 days.

Windows Scheduler已经存储了已执行的计划任务列表,您可以在最后一小时,一天,一周或30天内查看任务的执行情况。

If you're looking for something more programmatic and accessible from outside of Windows Scheduler then you could output something in the Talend job itself.

如果您正在寻找更具编程性且可从Windows Scheduler外部访问的内容,那么您可以在Talend作业中输出一些内容。

For example you could start your job with a quick entry to a log file or database table with the date-time of execution and the job name (retrievable from Talend's time handling functions and also system variables - try hitting ctrl+space to see a list of variables available to you) that is started and then finish the job with another log in the log file or database table with an entry for whether it succeeded or failed and the time that the job finished along with the job name.

例如,您可以通过快速输入日志文件或数据库表来启动您的工作,其中包含执行日期时间和作业名称(可从Talend的时间处理函数和系统变量中检索 - 尝试按ctrl + space查看列表已启动的变量,然后使用日志文件或数据库表中的另一个日志完成作业,其中包含成功或失败的条目以及作业与作业名称一起完成的时间。

#1


0  

Windows Scheduler already stores a list of executed scheduled tasks where you can see the execution of tasks in either the last hour, day, week or 30 days.

Windows Scheduler已经存储了已执行的计划任务列表,您可以在最后一小时,一天,一周或30天内查看任务的执行情况。

If you're looking for something more programmatic and accessible from outside of Windows Scheduler then you could output something in the Talend job itself.

如果您正在寻找更具编程性且可从Windows Scheduler外部访问的内容,那么您可以在Talend作业中输出一些内容。

For example you could start your job with a quick entry to a log file or database table with the date-time of execution and the job name (retrievable from Talend's time handling functions and also system variables - try hitting ctrl+space to see a list of variables available to you) that is started and then finish the job with another log in the log file or database table with an entry for whether it succeeded or failed and the time that the job finished along with the job name.

例如,您可以通过快速输入日志文件或数据库表来启动您的工作,其中包含执行日期时间和作业名称(可从Talend的时间处理函数和系统变量中检索 - 尝试按ctrl + space查看列表已启动的变量,然后使用日志文件或数据库表中的另一个日志完成作业,其中包含成功或失败的条目以及作业与作业名称一起完成的时间。