ShardedJobSettings settings) {
TaskOptions taskOptions = TaskOptions.Builder.withMethod(TaskOptions.Method.POST)
.url(settings.getControllerPath())
.param(JOB_ID_PARAM, jobId)
.param(TASK_ID_PARAM, taskId);
taskOptions.header("Host", settings.getTaskQueueTarget());
QueueFactory.getQueue(settings.getQueueName()).add(tx, taskOptions);
}
private void scheduleWorkerTask(Transaction tx, ShardedJobSettings settings,
IncrementalTaskState<T> state, Long eta) {