if (config.getBooleanProperty(CoreConfig.INGEST_MODE) || config.getBooleanProperty(CoreConfig.ROLLUP_MODE)) {
// these threads are responsible for sending/receiving schedule context state to/from the database.
final Collection<Integer> allShards = Collections.unmodifiableCollection(Util.parseShards("ALL"));
try {
final AstyanaxShardStateIO io = new AstyanaxShardStateIO();
final ShardStatePusher shardStatePusher = new ShardStatePusher(allShards,
context.getShardStateManager(),
io);
final ShardStatePuller shardStatePuller = new ShardStatePuller(allShards,
context.getShardStateManager(),