arjun4084346 commented on a change in pull request #2923: [GOBBLIN-1083] Unit
test improving & return failed when helix task cancelled
URL: https://github.com/apache/incubator-gobblin/pull/2923#discussion_r404623597
##########
File path:
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/task/FailedTask.java
##########
@@ -16,19 +16,30 @@
*/
package org.apache.gobblin.runtime.task;
+import org.apache.gobblin.configuration.ConfigurationKeys;
import org.apache.gobblin.configuration.WorkUnitState;
import org.apache.gobblin.publisher.DataPublisher;
import org.apache.gobblin.publisher.NoopPublisher;
import org.apache.gobblin.runtime.JobState;
import org.apache.gobblin.runtime.TaskContext;
+import org.apache.gobblin.runtime.TaskState;
import org.apache.gobblin.source.workunit.WorkUnit;
+import com.google.common.base.Throwables;
+
+import groovy.util.logging.Slf4j;
+
+
/**
- * A task which raise an exception when run
+ * A task which returns "FAILED" state directly.
*/
+@Slf4j
public class FailedTask extends BaseAbstractTask {
- public FailedTask (TaskContext taskContext) {
+ private final TaskContext taskContext;
Review comment:
Oh yes, maybe have this in BaseAbstractTask so it can be removed from all
child classes like I said in previous comment?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services