[ https://issues.apache.org/jira/browse/FLINK-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15139415#comment-15139415 ]
ASF GitHub Bot commented on FLINK-2523: --------------------------------------- Github user tillrohrmann commented on a diff in the pull request: https://github.com/apache/flink/pull/1612#discussion_r52356401 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java --- @@ -102,60 +101,150 @@ // -------------------------------------------------------------------------------------------- /** - * Constructs a new job graph with no name and a random job ID. + * Constructs a new job graph with no name, a random job ID, and the default + * {@link ExecutionConfig} parameters. */ public JobGraph() { this((String) null); } /** - * Constructs a new job graph with the given name, a random job ID. + * Constructs a new job graph with the given name, a random job ID and the default + * {@link ExecutionConfig} parameters. * * @param jobName The name of the job */ public JobGraph(String jobName) { - this(null, jobName); + this(null, jobName, new ExecutionConfig()); + } + + /** + * Constructs a new job graph with the given job ID, the given name, and the default + * {@link ExecutionConfig} parameters. + * + * @param jobID The id of the job. A random ID is generated, if {@code null} is passed. + * @param jobName The name of the job. + */ + public JobGraph(JobID jobID, String jobName) { + this(jobID, jobName, new ExecutionConfig()); } /** - * Constructs a new job graph with the given name and a random job ID if null supplied as an id. + * Constructs a new job graph with the given name, the given {@link ExecutionConfig}, + * and a random job ID. + * + * @param jobName The name of the job. + * @param config The execution configuration of the job. + */ + public JobGraph(String jobName, ExecutionConfig config) { + this(null, jobName, config); + } + + /** + * Constructs a new job graph with the given job ID (or a random ID, if {@code null} is passed), + * the given name and the given execution configuration (see {@link ExecutionConfig}). * * @param jobId The id of the job. A random ID is generated, if {@code null} is passed. * @param jobName The name of the job. + * @param config The execution configuration of the job. */ - public JobGraph(JobID jobId, String jobName) { + public JobGraph(JobID jobId, String jobName, ExecutionConfig config) { this.jobID = jobId == null ? new JobID() : jobId; this.jobName = jobName == null ? "(unnamed job)" : jobName; + this.executionConfig = config; --- End diff -- Can `executionConfig` be `null`? If not, then we should insert a check here. > Make task canceling interrupt interval configurable > --------------------------------------------------- > > Key: FLINK-2523 > URL: https://issues.apache.org/jira/browse/FLINK-2523 > Project: Flink > Issue Type: Improvement > Components: TaskManager > Affects Versions: 0.10.0 > Reporter: Stephan Ewen > Assignee: Klou > Fix For: 1.0.0 > > > When a task is canceled, the cancellation calls periodically "interrupt()" on > the task thread, if the task thread does not cancel with a certain time. > Currently, this value is hard coded to 10 seconds. We should make that time > configurable. > Until then, I would like to increase the value to 30 seconds, as many tasks > (here I am observing it for Kafka consumers) can take longer then 10 seconds > for proper cleanup. -- This message was sent by Atlassian JIRA (v6.3.4#6332)