generated from AgnostiqHQ/covalent-executor-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert to old remote executor api and unblock archive upload (#31)
* Unblock uploading deployment archive * Raise more informative exceptions * Copy RemoteExecutor.run_async_subprocess to AWSLambdaExecutor Revert this change later once we pin against a newer version of Covalent. * Update changelog * Add FT for failing workflow * Specify executor instance in failing_workflow FT
- Loading branch information
Showing
5 changed files
with
118 additions
and
13 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
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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import covalent as ct | ||
from covalent._shared_files import logger | ||
from utils.executor_instance import executor | ||
|
||
app_log = logger.app_log | ||
log_stack_info = logger.log_stack_info | ||
|
||
|
||
@ct.electron(executor=executor) | ||
def failing_task(a, b): | ||
raise NotImplementedError("Not implemented!!!") | ||
|
||
|
||
@ct.lattice | ||
def failing_workflow(a, b): | ||
failing_task(a, b) | ||
|
||
|
||
dispatch_id = ct.dispatch(failing_workflow)(1, 2) | ||
app_log.debug(f"AWS Lambda functional test `failing_workflow.py` dispatch id: {dispatch_id}") | ||
|
||
result = ct.get_result(dispatch_id, wait=True) | ||
assert result.status == ct.status.FAILED |
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