Skip to content

Commit

Permalink
Implement create task (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
  • Loading branch information
waynehamadi committed Aug 17, 2023
1 parent 3d13f95 commit 8b44ecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
- name: Run regression tests
run: |
poetry run python -m autogpt &
cp .env.example .env
newman run https://raw.githubusercontent.com/Significant-Gravitas/devtool-postman/master/Postman%20Collections/devtool_experience.json --env-var "url= http://127.0.0.1:8000" || echo "The backend is not ready yet, so the tests will fail"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand Down
3 changes: 2 additions & 1 deletion autogpt/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ async def task_handler(self, task: Task) -> None:
print(f"task: {task.input}")
await Agent.db.create_step(task.task_id, task.input, is_last=True)
time.sleep(2)
autogpt.utils.run(task.input)

# autogpt.utils.run(task.input) the task_handler only creates the task, it doesn't execute it
# print(f"Created Task id: {task.task_id}")
return task

Expand Down

0 comments on commit 8b44ecb

Please sign in to comment.