Class ArchiveStatusCleanupTask
- java.lang.Object
- 
- com.netflix.genie.web.tasks.GenieTask
- 
- com.netflix.genie.web.tasks.leader.LeaderTask
- 
- com.netflix.genie.web.tasks.leader.ArchiveStatusCleanupTask
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Runnable
 
 public class ArchiveStatusCleanupTask extends LeaderTask Leader task that find jobs whose archival status was left in 'PENDING' state. This can for example happen if the agent fails to update the server after successfully archiving. The logic is summarized as: If a job finished running more than N minutes ago, and the agent is disconnected and the archive status is PENDING, then set the archive status to UNKNOWN.- Since:
- 4.0.0
 
- 
- 
Constructor SummaryConstructors Constructor Description ArchiveStatusCleanupTask(DataServices dataServices, AgentRoutingService agentRoutingService, ArchiveStatusCleanupProperties properties, io.micrometer.core.instrument.MeterRegistry registry)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetFixedRate()Get how long the system should wait between invoking the run() method of this task in milliseconds.GenieTaskScheduleTypegetScheduleType()Get the type of scheduling mechanism which should be used to schedule this task.voidrun()- 
Methods inherited from class com.netflix.genie.web.tasks.leader.LeaderTaskcleanup
 - 
Methods inherited from class com.netflix.genie.web.tasks.GenieTaskgetFixedDelay, getTrigger
 
- 
 
- 
- 
- 
Constructor Detail- 
ArchiveStatusCleanupTaskpublic ArchiveStatusCleanupTask(DataServices dataServices, AgentRoutingService agentRoutingService, ArchiveStatusCleanupProperties properties, io.micrometer.core.instrument.MeterRegistry registry) Constructor.- Parameters:
- dataServices- data services
- agentRoutingService- agent routing service
- properties- task properties
- registry- metrics registry
 
 
- 
 - 
Method Detail- 
runpublic void run() 
 - 
getScheduleTypepublic GenieTaskScheduleType getScheduleType() Get the type of scheduling mechanism which should be used to schedule this task.- Specified by:
- getScheduleTypein class- GenieTask
- Returns:
- The schedule type
 
 - 
getFixedRatepublic long getFixedRate() Get how long the system should wait between invoking the run() method of this task in milliseconds.- Overrides:
- getFixedRatein class- GenieTask
- Returns:
- The period to wait between invocations of run for this task
 
 
- 
 
-