-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quick update to make no-op do something
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,4 @@ def wizard_description(): | |
} | ||
|
||
def operate(self, input_data): | ||
pass | ||
print("No-op triggered!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import dramatiq | ||
|
||
from datalab.datalab_session.data_operations.data_operation import available_operations | ||
|
||
#TODO: Perhaps define a pipeline that can take the output of one data operation and upload to a s3 bucket, indicate success, etc... | ||
|
||
@dramatiq.actor() | ||
def execute_data_operation(data_operation_name: str, input_data: dict): | ||
clz = available_operations().get(data_operation_name) | ||
if clz is None: | ||
operation_class = available_operations().get(data_operation_name) | ||
if operation_class is None: | ||
raise NotImplementedError("Operation not implemented!") | ||
else: | ||
instance = clz() | ||
instance.operate(input_data) | ||
operation_class().operate(input_data) |