- Posts: 20
- Thank you received: 1
Make start field static
1 year 11 months ago #21342
by Derrick
Make start field static was created by Derrick
Hello
Would it be possible to make the start time static at all rather than show the last time it was executed?
The reason I ask is that if the server has a problem, it stops running next time if the next time it's due to run is at 12am.
or would it be possible in the interim to send me s scrip that will set all the start times for all packages to 00:00:01 as all of them run every few minutes?
Would it be possible to make the start time static at all rather than show the last time it was executed?
The reason I ask is that if the server has a problem, it stops running next time if the next time it's due to run is at 12am.
or would it be possible in the interim to send me s scrip that will set all the start times for all packages to 00:00:01 as all of them run every few minutes?
Please Log in or Create an account to join the conversation.
1 year 11 months ago #21343
by admin
Mike
ETL Architect
Replied by admin on topic Make start field static
Good Morning
Would it be possible to make the start time static at all rather than show the last time it was executed?
It is not "the last time it was executed" is "the time of next execution"
Let say we run something every five minutes
Current time is 2021-10-05 12:03:00'
Start time is 2021-10-05 12:05:00'
We run the following SQL.
select count(*) from schedule where start_time < current
SQL returns zero = we have nothing to execute
Let say the current time is 2021-10-05 12:05:03'
The same SQL returns 1
so we execute the package and set the start time to 2021-10-05 12:10:00'
And so on.
All schedule settings are stored in [SCHEDULE] table
You can update START_AT for all records by running the following SQL
Update [SCHEDULE] set START_AT='2021-10-05 00:00:01'
Here is the list of repository tables.
www.etl-tools.com/wiki/knowledgebase/repository_tables
I hope you will find my comments useful
Would it be possible to make the start time static at all rather than show the last time it was executed?
It is not "the last time it was executed" is "the time of next execution"
Let say we run something every five minutes
Current time is 2021-10-05 12:03:00'
Start time is 2021-10-05 12:05:00'
We run the following SQL.
select count(*) from schedule where start_time < current
SQL returns zero = we have nothing to execute
Let say the current time is 2021-10-05 12:05:03'
The same SQL returns 1
so we execute the package and set the start time to 2021-10-05 12:10:00'
And so on.
All schedule settings are stored in [SCHEDULE] table
You can update START_AT for all records by running the following SQL
Update [SCHEDULE] set START_AT='2021-10-05 00:00:01'
Here is the list of repository tables.
www.etl-tools.com/wiki/knowledgebase/repository_tables
I hope you will find my comments useful
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
1 year 11 months ago #21344
by Derrick
Replied by Derrick on topic Make start field static
Ah, I see I think what's happening is the job fails just after midnight so the next execution is stuck on 23:57 so the next day it won't execute till 23:57 by that point a day has passed.
I'll write a SQL agent to run periodically to update the start time in the table
many thanks
I'll write a SQL agent to run periodically to update the start time in the table
many thanks
Please Log in or Create an account to join the conversation.
1 year 11 months ago #21345
by admin
Mike
ETL Architect
Replied by admin on topic Make start field static
Yes, it is technically possible in case of server failure.
It should change 'start at' to next day 2021-10-06 00:02:00'
I will double-check it here
It should change 'start at' to next day 2021-10-06 00:02:00'
I will double-check it here
Mike
ETL Architect
Please Log in or Create an account to join the conversation.