Module is tracking actions and log these on Event Track dashboard. But these logs are not getting deleting on CRON run. I have setup the Timespan field value to 1 day. I ran cron manually multiple times and also waited for automatic cron run, but logs older than 1 day are not getting deleted.
I have tried to debug this. Cron hook is getting called and its calling getOldRecords to query DB to get all old records and deleteOldRecords to set batch and calling processOldRecords function to which has delete query. This method processOldRecords is not getting called. Thats why logs are not getting deleted.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3384451-4.patch | 535 bytes | chandreshgiri gauswami |
Issue fork events_log_track-3384451
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
samitk commentedI am working on it.
Comment #3
rushikesh raval commented@samit.310@gmail.com are working on this issue ?
if not then unassigned it so other can work on it.
Comment #4
chandreshgiri gauswami commentedAttaching the patch.
Comment #5
smustgrave commentedThat's incorrect, should be using dependency injection.
And why are we making it static?
Comment #6
chandreshgiri gauswami commentedBecause batch_process function requires static callable method as an argument and if we make processOldRecords() method static, we can't use $this->database inside it. So had to remove dependency injection.
Comment #7
chandreshgiri gauswami commentedComment #8
smustgrave commentedSorry but think we need to find another way without dropping dependency injection
Comment #9
smustgrave commentedComment #10
smustgrave commentedComment #13
smustgrave commentedComment #14
smustgrave commented