AutoGPT/rnd/autogpt_server/migrations
Zamil Majdy c1f301ab8b
feat(rnd): Add initial credit accounting system for block execution (#8047)
### Background

We need a way to set an execution quota per user for each block execution.

### Changes 🏗️

* Introduced a `UserBlockCredit`, a transaction table tracking the block usage along with it cost/quota.
* The tracking is toggled by `ENABLE_CREDIT` config, default = false.
* Introduced  `BLOCK_COSTS` | `GET /blocks/costs` as a source of information for the cost on each block depending on the input configuration.

Improvements:
* Refactor logging in manager.py to always print a prefix and pass the metadata.
* Make executionStatus on AgentNodeExecution prisma enum. And add executionStatus on AgentGraphExecution.
* Use executionStatus from AgentGraphExecution to improve waiting logic on test_manager.py.
2024-09-14 23:47:28 +07:00
..
20240722143307_migrations tweak(rnd,docker) Remove SQLite (#7966) 2024-09-04 10:18:57 +01:00
20240726131311_node_input_unique_constraint tweak(rnd,docker) Remove SQLite (#7966) 2024-09-04 10:18:57 +01:00
20240729061216_static_input_link tweak(rnd,docker) Remove SQLite (#7966) 2024-09-04 10:18:57 +01:00
20240804040801_add_subgraph tweak(rnd,docker) Remove SQLite (#7966) 2024-09-04 10:18:57 +01:00
20240805115810_add_user_management tweak(rnd,docker) Remove SQLite (#7966) 2024-09-04 10:18:57 +01:00
20240807123738_add_index_users tweak(rnd,docker) Remove SQLite (#7966) 2024-09-04 10:18:57 +01:00
20240808095419_add_required_user_ids tweak(rnd,docker) Remove SQLite (#7966) 2024-09-04 10:18:57 +01:00
20240902223334_add_stats_column feat(rnd): Add Node & Graph level execution stats instrumentation (#7957) 2024-09-04 02:45:19 +07:00
20240906155206_add_created_at_updated_at feat(rnd): Add creation & update time for AgentGraphExecutionSchedule, AgentGraphExecution, and AgentGraph (#8015) 2024-09-06 21:29:53 +00:00
20240914033334_user_credit feat(rnd): Add initial credit accounting system for block execution (#8047) 2024-09-14 23:47:28 +07:00
migration_lock.toml feat(rnd): Add creation & update time for AgentGraphExecutionSchedule, AgentGraphExecution, and AgentGraph (#8015) 2024-09-06 21:29:53 +00:00