[MS] Premature deletion of pileup documents in the cleanup task
**Impact of the bug**
MSPileup

**Describe the bug**
While testing MSPileup/MSPileupTasks with real workload against Rucio Prod (in dryRun mode), I observed that pileup documents matched the constraints for document deletion, thus getting deleted from MongoDB prematurely.
Further investigation is required to identify why that happen.

**How to reproduce it**
Inject pileup documents with `active=false`, using WMCore `2.2.0` and wait for MSPileupTasks cycle to run.

**Expected behavior**
When a pileup object is created, it is supposed to be set with `deactivatedOn=current GMT time`. This is then evaluated by `cleanupTask`, and disabled pileup documents older than X days (cleanupDaysThreshold) are supposed to be automatically deleted by MSPileup.

**Additional context and error message**
I think the error is with this code:
```
            if not doc['ruleIds'] and not doc['currentRSEs'] and \\
                    doc['deactivatedOn'] + seconds > time.time():
```

which should actually be:
```
            if not doc['ruleIds'] and not doc['currentRSEs'] and time.time() > doc['deactivatedOn'] + seconds:
```

diff --git a/src/python/WMCore/MicroService/MSPileup/MSPileupTasks.py b/src/python/WMCore/MicroService/MSPileup/MSPileupTasks.py
index 309391fc4..cca610ec4 100644
--- a/src/python/WMCore/MicroService/MSPileup/MSPileupTasks.py
+++ b/src/python/WMCore/MicroService/MSPileup/MSPileupTasks.py
@@ -91,7 +91,7 @@ class MSPileupTasks():
         seconds = cleanupDaysThreshold * 24 * 60 * 60  # convert to second
         for doc in docs:
             if not doc['ruleIds'] and not doc['currentRSEs'] and \\
-                    doc['deactivatedOn'] + seconds > time.time():
+                    time.time() > doc['deactivatedOn'] + seconds:
                 spec = {'pileupName': doc['pileupName']}
                 if not self.dryRun:
                     self.logger.info("Cleanup task deleting pileup %s", doc['pileupName'])
['src/python/WMCore/MicroService/MSPileup/MSPileupTasks.py']