Skip to content

Commit

Permalink
Merge pull request #87 from cowprotocol/remove_internal_imbalances_job
Browse files Browse the repository at this point in the history
Remove internal imbalances job
  • Loading branch information
harisang authored Mar 5, 2024
2 parents abfc588 + 7183713 commit a017ea7
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 243 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ jobs:
env:
PROD_DB_URL: ${{ secrets.PROD_DB_URL }}
BARN_DB_URL: ${{ secrets.BARN_DB_URL }}
WAREHOUSE_URL: ${{ secrets.WAREHOUSE_URL }}
55 changes: 0 additions & 55 deletions src/fetch/postgres.py

This file was deleted.

9 changes: 0 additions & 9 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@

from src.fetch.dune import DuneFetcher
from src.fetch.orderbook import OrderbookFetcher
from src.fetch.postgres import PostgresFetcher
from src.logger import set_log
from src.models.tables import SyncTable
from src.post.aws import AWSClient
from src.sync import sync_app_data
from src.sync.config import SyncConfig, AppDataSyncConfig
from src.sync.order_rewards import sync_order_rewards, sync_batch_rewards
from src.sync.token_imbalance import sync_internal_imbalance

log = set_log(__name__)

Expand Down Expand Up @@ -84,12 +82,5 @@ def __init__(self) -> None:
fetcher=OrderbookFetcher(),
dry_run=args.dry_run,
)
elif args.sync_table == SyncTable.INTERNAL_IMBALANCE:
sync_internal_imbalance(
aws,
config=SyncConfig(volume_path),
fetcher=PostgresFetcher(os.environ["WAREHOUSE_URL"]),
dry_run=args.dry_run,
)
else:
log.error(f"unsupported sync_table '{args.sync_table}'")
1 change: 0 additions & 1 deletion src/models/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class SyncTable(Enum):
APP_DATA = "app_data"
ORDER_REWARDS = "order_rewards"
BATCH_REWARDS = "batch_rewards"
INTERNAL_IMBALANCE = "internal_imbalance"

def __str__(self) -> str:
return str(self.value)
Expand Down
27 changes: 0 additions & 27 deletions src/models/token_imbalance_schema.py

This file was deleted.

4 changes: 0 additions & 4 deletions src/sql/warehouse/latest_block.sql

This file was deleted.

11 changes: 0 additions & 11 deletions src/sql/warehouse/token_imbalances.sql

This file was deleted.

47 changes: 0 additions & 47 deletions src/sync/token_imbalance.py

This file was deleted.

42 changes: 0 additions & 42 deletions tests/integration/test_warehouse_fetcher.py

This file was deleted.

46 changes: 0 additions & 46 deletions tests/unit/test_token_imbalance_schema.py

This file was deleted.

0 comments on commit a017ea7

Please sign in to comment.