Sat Sep 26, 2020 3:43 pm
Login Register Lost Password? Contact Us


EXPIRE not working

Comments and questions related to the Enterprise Control Language

Tue Apr 14, 2020 3:39 pm Change Time Zone

Hi,

We have EXPIRE(90) set on the creation of output logs from a job each day.

I understand that this is from the last time the file was read.

I have used:

Code: Select all
STD.File.GetLogicalFileAttribute('~' + L.name, 'accessed');


84 of these files show as:

2020-01-10T17:05:08

This is more than 90 days ago, so I don't understand why they have not been removed.

Can anyone point me in the right direction to resolve this?

Thanks
SChatman85
 
Posts: 14
Joined: Mon Sep 02, 2019 2:13 pm

Tue Apr 14, 2020 6:14 pm Change Time Zone

SChatman85,

What do you get when you run this for those files?
Code: Select all
STD.File.GetLogicalFileAttribute('~' + L.name, 'expireDays');
If this comes back blank, then EXPIRE was not set on the OUTPUT that created the file.

But, if they come back as "90" then you've identified a problem that needs to be reported in JIRA.

HTH,

Richard
rtaylor
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1556
Joined: Wed Oct 26, 2011 7:40 pm

Wed Apr 15, 2020 8:13 am Change Time Zone

Hi Richard,

Thanks for the response.

They do indeed come back as 90:

Code: Select all
accessed        expire
2020-01-10T17:05:08   90


I'll look to log a Bug on JIRA
SChatman85
 
Posts: 14
Joined: Mon Sep 02, 2019 2:13 pm

Fri May 22, 2020 8:21 pm Change Time Zone

Can you share the JIRA ticket for this?

SChatman85 wrote:Hi Richard,

Thanks for the response.

They do indeed come back as 90:

Code: Select all
accessed        expire
2020-01-10T17:05:08   90


I'll look to log a Bug on JIRA
micevepay
 
Posts: 62
Joined: Wed Apr 02, 2014 7:30 pm

Sat May 23, 2020 4:43 pm Change Time Zone

Hi,

the Sasha component is responsible for the deletion of expired files.

Could you check it is running properly, it's process is running (saserver)?
If it is running correctly, there should be evidence of the files it tried to delete. The logging should contain "FILEEXPIRY: Deleting" and "FILEEXPIRY: Deleted" together with the names of the logical filenames that were being handled.

Thanks.
jsmith
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 77
Joined: Tue Jul 19, 2011 12:58 pm


Return to ECL

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron