Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #95

Open
chinmoybasak opened this issue Jun 21, 2022 · 1 comment
Open

[Bug] #95

chinmoybasak opened this issue Jun 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@chinmoybasak
Copy link

Describe the bug
A clear and concise description of what the bug is.

###The ERROR##
Stage(process_fn=Map(f=<function allpkh at 0x000001BE3DA41318>), workers=4, maxsize=8, total_sources=1, timeout=0, dependencies=[Stage(process_fn=FromIterable(iterable=['1

Minimal code to reproduce
Small snippet that contains a minimal amount of code.

stage = pl.task.map(allpkh, Company1, workers=4, maxsize=8)
print(stage)

#have tried with the process also


**Expected behavior**
The function should print the results

**Library Info**
Please provide os info and elegy version.
```python
import pypeln
print(pypeln.__version__)

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@chinmoybasak chinmoybasak added the bug Something isn't working label Jun 21, 2022
@bzamecnik
Copy link

@ chinmoybasak No, print(stage) is indeed expected to print a representation, not the results.

You need to iterate over the stage:

# iterate in a for-loop
for result in stage:
    print(result)

# or gather into a list:
print(list(stage))

This issue can be closed as WONTFIX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants