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] TypeError: descriptor 'append' for 'list' objects doesn't apply to a 'Task' object #349

Closed
vyomakesh09 opened this issue Jan 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vyomakesh09
Copy link
Contributor

vyomakesh09 commented Jan 11, 2024

[ERROR][ConcurrentWorkflow] descriptor 'append' for 'list' objects doesn't apply to a 'Task' object
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-7-3cd599b21a20>](https://localhost:8080/#) in <cell line: 23>()
     21 
     22 # Add tasks to the workflow
---> 23 workflow.add(task1)
     24 workflow.add(task2)
     25 workflow.add(task3)

1 frames
[/usr/local/lib/python3.10/dist-packages/swarms/structs/recursive_workflow.py](https://localhost:8080/#) in add(self, task, tasks)
     47                     self.tasks.append(task)
     48             else:
---> 49                 self.tasks.append(task)
     50         except Exception as error:
     51             print(f"[ERROR][ConcurrentWorkflow] {error}")

TypeError: descriptor 'append' for 'list' objects doesn't apply to a 'Task' object

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@vyomakesh09 vyomakesh09 added the bug Something isn't working label Jan 11, 2024
@kyegomez
Copy link
Owner

@vyomakesh09 I have fixed this error by removing tasks from the add method

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