covalent icon indicating copy to clipboard operation
covalent copied to clipboard

adding DNN tutorial

Open wjcunningham7 opened this issue 2 years ago • 2 comments

  • [ ] I have added the tests to cover my changes.
  • [ ] I have updated the documentation and CHANGELOG accordingly.
  • [ ] I have read the CONTRIBUTING document.

wjcunningham7 avatar Jul 12 '22 19:07 wjcunningham7

Codecov Report

Merging #818 (7b18506) into develop (c7fea4e) will decrease coverage by 4.27%. The diff coverage is n/a.

:exclamation: Current head 7b18506 differs from pull request most recent head 93fcda8. Consider uploading reports for the commit 93fcda8 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #818      +/-   ##
===========================================
- Coverage    75.82%   71.54%   -4.28%     
===========================================
  Files          140      140              
  Lines         5476     5476              
  Branches       142      142              
===========================================
- Hits          4152     3918     -234     
- Misses        1205     1439     +234     
  Partials       119      119              
Flag Coverage Δ *Carryforward flag
Dispatcher 85.23% <ø> (ø) Carriedforward from ff7d0af
Functional_Tests ?
SDK 80.18% <ø> (ø) Carriedforward from ff7d0af
UI_Frontend 47.49% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

codecov[bot] avatar Jul 12 '22 19:07 codecov[bot]

Tutorial DB:

dnn_tutorial_20220923.sqlite.zip

FyzHsn avatar Sep 23 '22 13:09 FyzHsn

  1. Follow up issues to investigate - Sometimes, gives the following error even though nothing was changed in the code (usually after a period of inactivity):
Node fetch_and_validate_data failed: Traceback (most recent call last): File "/Users/faiyaz/Code/covalent/covalent_dispatcher/_core/execution.py", line 353, in _run_task output, stdout, stderr = await execute_callable() File "/Users/faiyaz/Code/covalent/covalent/executor/base.py", line 387, in execute result = await self.run(function, args, kwargs, task_metadata) File "/Users/faiyaz/Code/covalent/covalent/executor/executor_plugins/dask.py", line 112, in run result, worker_stdout, worker_stderr = await dask_client.gather(future) File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/distributed/client.py", line 2037, in _gather raise exception.with_traceback(traceback) File "/Users/faiyaz/Code/covalent/covalent/executor/executor_plugins/dask.py", line 60, in dask_wrapper output = fn(*args, **kwargs) File "/Users/faiyaz/Code/covalent/covalent/executor/base.py", line 67, in wrapper_fn retval = cb_fn(*cb_args, **cb_kwargs) File "/Users/faiyaz/Code/covalent/covalent/_file_transfer/strategies/s3_strategy.py", line 125, in callable s3.download_file(bucket_name, from_filepath, to_filepath) File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/boto3/s3/inject.py", line 190, in download_file return transfer.download_file( File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/boto3/s3/transfer.py", line 320, in download_file future.result() File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/s3transfer/futures.py", line 103, in result return self._coordinator.result() File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/s3transfer/futures.py", line 266, in result raise self._exception File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/s3transfer/tasks.py", line 269, in _main self._submit(transfer_future=transfer_future, **kwargs) File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/s3transfer/download.py", line 354, in _submit response = client.head_object( File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/botocore/client.py", line 514, in _api_call return self._make_api_call(operation_name, kwargs) File "/Users/faiyaz/opt/anaconda3/envs/dnn-tutorial/lib/python3.8/site-packages/botocore/client.py", line 934, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (400) when calling the HeadObject operation: Bad Request

The solution in this case is to stop the covalent server and restart it. Everything works after that. Why does this happen?

FyzHsn avatar Nov 02 '22 13:11 FyzHsn

Database:

dnn_tutorial_20220923.sqlite.zip

FyzHsn avatar Nov 04 '22 14:11 FyzHsn