samples-python icon indicating copy to clipboard operation
samples-python copied to clipboard

restruct sentry proj

Open bkodes opened this issue 2 years ago • 1 comments

The code in /sentry currently does not run.

Cannot access http.client.IncompleteRead.__mro_entries__ from inside a workflow. If this is code from a module not used in a workflow or known to only be us
ed deterministically from a workflow, mark the import as pass through.

Separating the workflow code into its own file resolves the issue

What was changed

Moved greetings workflow to workflows.py and import workflow within worker

Why?

So others can reference this sample and have no issue running it without alterations being made

Checklist

  1. Closes

  2. How was this tested:

Followed run instructions in README.md. Outputs:

cmd: poetry run python starter.py
output: Workflow result: Hello, World!
  1. Any docs updates needed?

No

bkodes avatar Jul 24 '23 19:07 bkodes

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 24 '23 19:07 CLAassistant