In both phase IB and phase 2 portions, patients will receive the combination of azacitidine, pembrolizumab and epacadostat (INCB024360) for the first 18 cycles (Cycles 1-18). Beginning with Cycle 19 through Cycle 35, patients will receive the combination of pembrolizumab and epacadostat (INCB024360).