-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FLINK-2523: making the task cancellation interval configurable. #1546
Conversation
@@ -60,6 +60,7 @@ public static void main(String[] args) throws Exception { | |||
|
|||
// set up the execution environment | |||
final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); | |||
env.getConfig().setTaskCancellationDelay(40000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that's an accidental commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right.
f53a88e
to
17df644
Compare
Thank you for this patch. The idea is good, but I think it needs a bit of improvement:
|
The |
17df644
to
0646424
Compare
Hi @StephanEwen , Could you please elaborate more on how you think that the ExecutionConfig could be accessed differently by the Task? Thanks! |
Ah, true, the I think it would be a good refactoring to pass the ExecutionConfig directly via the TaskDeploymentDescriptor. Then the canceling interval can be passed simply through there. |
0e23d1d
to
c43e9bd
Compare
c43e9bd
to
842772d
Compare
@@ -93,24 +94,28 @@ | |||
private final SerializedValue<StateHandle<?>> operatorState; | |||
|
|||
private long recoveryTimestamp; | |||
|
|||
|
|||
/** The interval (in millis) between consecutive task cancellation retries. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is probably still from an earlier version of the code
This is going into a good direction. Two suggestions:
|
FLINK-2523: Makes the task cancellation interval configurable.