Skip to content

[Job Launcher] Remove CVAT job validations and content moderation code#3846

Open
flopez7 wants to merge 5 commits into3806from
flopez/3806-1
Open

[Job Launcher] Remove CVAT job validations and content moderation code#3846
flopez7 wants to merge 5 commits into3806from
flopez/3806-1

Conversation

@flopez7
Copy link
Copy Markdown
Contributor

@flopez7 flopez7 commented Mar 25, 2026

Issue tracking

#3806

Context behind the change

  • Removed legacy CVAT job creation logic from Job Launcher.
  • Removed CVAT-specific manifest creation and validation from the create flow.
  • Removed the GCV/content moderation flow and its cron job.
  • Updated job creation so jobs no longer wait for moderation before escrow creation.
  • Created new migration removing unused values.
  • Cleaned related config, .env.example, and tests.

How has this been tested?

  • Ran unit tests.
  • Deployed locally and created an escrow

Release plan

Deploy migrations and remove the following vars from env:

  • CVAT_JOB_SIZE
  • CVAT_MAX_TIME
  • CVAT_VAL_SIZE
  • CVAT_SKELETONS_JOB_SIZE_MULTIPLIER
  • GOOGLE_PROJECT_ID
  • GOOGLE_PRIVATE_KEY
  • GOOGLE_CLIENT_EMAIL
  • GCV_MODERATION_RESULTS_FILES_PATH
  • GCV_MODERATION_RESULTS_BUCKET
  • SLACK_ABUSE_NOTIFICATION_WEBHOOK_URL

Potential risks; What to monitor; Rollback plan

Check HCaptcha Jobs still working

@flopez7 flopez7 self-assigned this Mar 25, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

5 Skipped Deployments
Project Deployment Actions Updated (UTC)
faucet-frontend Ignored Ignored Preview Mar 30, 2026 1:18pm
faucet-server Ignored Ignored Preview Mar 30, 2026 1:18pm
human-app Skipped Skipped Mar 30, 2026 1:18pm
human-dashboard-frontend Skipped Skipped Mar 30, 2026 1:18pm
staking-dashboard Skipped Skipped Mar 30, 2026 1:18pm

Request Review

@flopez7 flopez7 requested review from Dzeranov and portuu3 March 25, 2026 15:59
@flopez7 flopez7 added the WIP Work In Progress label Mar 25, 2026
@flopez7 flopez7 marked this pull request as draft March 26, 2026 10:10
Copy link
Copy Markdown
Contributor

@Dzeranov Dzeranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Please, create a dedicated branch to merge this PR to as we discussed
  2. There are still leftovers related to content moderation - gcv.ts, ErrorContentModeration, some vars in constants, etc.

Copy link
Copy Markdown
Contributor

@Dzeranov Dzeranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, address these changes to the migration file, the rest looks good to me.

Copy link
Copy Markdown
Contributor

@Dzeranov Dzeranov Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm not mistaken there're a few things missing:

  1. You need to delete content-moderation-requests table.
  2. Detele content-moderation cron-job record.
  3. Change jobs statuses moderation_passed, possible_abuse_in_review and under_moderation accordingly.

It all can be done manually from a db but I don't like this approach.

@flopez7 flopez7 requested a review from Dzeranov March 30, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants