Basic example from README broken
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
Research direction
Reproduce the failure with the README files greetings_worker.py, greetings_workflow.py, and helloworld.py using uv run helloworld.py. Start with the task and workflow code named in the traceback, especially task.py and conductor_workflow.py, and verify that the example registers and runs without the reported AttributeError.
Written by the indexing model from the issue text.
Description
Copied all content from readme.
- greetings_worker.py
- greetings_workflow.py
- helloworld.py
Running server via docker-compose on latest main, although this doesn't matter since it's a client error.
Version 1.2.3. Python version 3.11.14.
❯ uv run helloworld.py
Traceback (most recent call last):
File "/home/discord/github.com/discord/discord/discord_hivemind/conductor/helloworld.py", line 36, in <module>
main()
File "/home/discord/github.com/discord/discord/discord_hivemind/conductor/helloworld.py", line 21, in main
workflow = register_workflow(workflow_executor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/discord/github.com/discord/discord/discord_hivemind/conductor/helloworld.py", line 10, in register_workflow
workflow.register(True)
File "/home/discord/github.com/discord/discord/discord_hivemind/.venv/lib/python3.11/site-packages/conductor/client/workflow/conductor_workflow.py", line 192, in register
workflow=self.to_workflow_def(),
^^^^^^^^^^^^^^^^^^^^^^
File "/home/discord/github.com/discord/discord/discord_hivemind/.venv/lib/python3.11/site-packages/conductor/client/workflow/conductor_workflow.py", line 267, in to_workflow_def
tasks=self.__get_workflow_task_list(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/discord/github.com/discord/discord/discord_hivemind/.venv/lib/python3.11/site-packages/conductor/client/workflow/conductor_workflow.py", line 289, in __get_workflow_task_list
converted_task = task.to_workflow_task()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/discord/github.com/discord/discord/discord_hivemind/.venv/lib/python3.11/site-packages/conductor/client/workflow/task/task.py", line 140, in to_workflow_task
if self._cache_ttl_second > 0 and self._cache_key is not None:
^^^^^^^^^^^^^^^^^^^^^^
File "/home/discord/github.com/discord/discord/discord_hivemind/.venv/lib/python3.11/site-packages/conductor/client/workflow/task/task.py", line 185, in __getattribute__
raise ae
File "/home/discord/github.com/discord/discord/discord_hivemind/.venv/lib/python3.11/site-packages/conductor/client/workflow/task/task.py", line 180, in __getattribute__
val = super().__getattribute__(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SimpleTask' object has no attribute '_cache_ttl_second'. Did you mean: 'cache_ttl_second'?
- Dominant language
- Python
- Stars
- 104
- Forks
- 43
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conductor-oss/python-sdk
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
conductor-oss/python-sdk#507 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
conductor-oss/python-sdk#502 ·
-
bug dependencies
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
conductor-oss/python-sdk#486 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
conductor-oss/python-sdk#483 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
conductor-oss/python-sdk#478 ·
All issues in conductor-oss/python-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100