mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-23 18:49:47 -05:00
feat: limits (#559)
* feat: workflow run limits * fix: resource exhausted 429 * feat: event limit * feat: worker limit * fix: sensible error * fix: pb * feat: expose limits api * feat: default limits * feat: add enable alert option * feat: slack and email alerts * fix: cron interval * feat: make metered util * wip: schedules and crons * chore: squash migration * fix: select or insert * fix: remove unfinished meter * chore: atlas migration * fix: template format * fix: shared ErrResourceExhausted * feat: cache * fix: limit can be nil * fix: clarification * fix: close meter ticker * fix: friendly error for child workflows
This commit is contained in:
@@ -40,10 +40,13 @@ if [[ ! "$DATABASE_URL" =~ sslmode ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "DATABASE_URL: $DATABASE_URL"
|
||||
# Check for prisma migrations
|
||||
MIGRATION_NAME=$(psql "$DATABASE_URL" -t -c "SELECT migration_name FROM _prisma_migrations ORDER BY started_at DESC LIMIT 1;" 2>/dev/null | xargs)
|
||||
MIGRATION_NAME=$(echo $MIGRATION_NAME | cut -d'_' -f1)
|
||||
|
||||
echo "Migration name: $MIGRATION_NAME"
|
||||
|
||||
if [ $? -eq 0 ] && [ -n "$MIGRATION_NAME" ]; then
|
||||
echo "Using existing prisma migration: $MIGRATION_NAME"
|
||||
|
||||
|
||||
Regular → Executable
Reference in New Issue
Block a user