Skip to content

About

The backend server to serve the recruitment website

Resources

Contributing

Stars

11 stars

Watchers

0 watching

Forks

Repository files navigation

How to run?

  • Use Go 1.25.1 or newer and configure .env using .env.example.
  • Apply the database migrations before starting the server (see below).
  • Install air
  • Run air command in the terminal
  • Alternatively, run go run ./cmd/app without installing Air.
  • Server is running on http://localhost:8080
  • API documentation (Swagger UI): http://localhost:8080/swagger/index.html
  • Raw JSON Spec: http://localhost:8080/swagger/doc.json
  • Enable Swagger with STAGE=dev or ENABLE_SWAGGER=true; otherwise these URLs return 404.

Sentry monitoring

Set SENTRY_BACKEND_DSN (or SENTRY_DSN) to enable Sentry. Leave both unset to disable reporting. Set RELEASE_VERSION (or APP_VERSION) to the deployed commit and STAGE to the environment name.

Traces sample 5% of routed requests, excluding health checks and OPTIONS. Structured request logs include route, method, status and duration for sampled requests and non-panic 5xx responses. Repeated 503 status reports and logs are limited to one per method/route per minute per process; duration metrics still count every request. Captured and returned underlying exceptions are retained. Provider report paths are redacted from Sentry payloads and Dolos console errors. Request logs share trace IDs. Existing console logs are not forwarded. Traces and logs exclude user identity and request data.

The http.server.duration distribution records every completed API request in milliseconds (independent of trace sampling), with route template, HTTP method, and response status. Use it for count, throughput, average, median, p95/p99 and 5xx percentage by route. Health checks and OPTIONS are excluded; unmatched paths share the unmatched label. Bodies, query strings and user identity are omitted. SDK buffers are bounded, so delivery is best effort; counts are not a billing ledger.

HTTP error events retain method, URL path, route identifiers, and the authenticated Firebase UID; request bodies, query strings, headers, cookies, and email are not included. There is no public Sentry test endpoint.

Worker panics are reported, flushed for up to two seconds, and re-panicked so the process supervisor can restart the service. Ensure automatic restart is enabled in the deployment. Normal shutdown drains HTTP requests and stops workers before the final bounded flush; lifecycle errors also flush before exit.

Dolos pair retrieval returns 503 when DOLOS_API_URL is unset. Set it to the intended provider API root and restart to enable automatic analysis.

API Documentation (Swagger)

To regenerate Swagger documentation after modifying route annotations or DTOs:

make swagger

DB Migrations

  • Install migrate
  • Add DB_ADDR to .env
  • Run these commands from the backend directory. Include $HOME/go/bin in PATH if migrate was installed with go install.
  • The current schema requires migrations through 000051: submission cooldowns (000027), saved final ranks (000028), internal compiler diagnostics (000029), Judge0 recovery state (000030), ordered recovery claims (000031), a single recovery deadline (000032), Dolos plagiarism detection (000033), the per-user problem progress index (000034), stable submission ordering (000035), unique MCQ submissions (000036), contest submission status/solves indexing (000037), and tab-switching enforcement & observation deduplication (000038), code request replay (000039), shared HTTP budgets (000040), pending admission slots (000041), removal of per-question time/memory settings (000042), session endings (000043), MCQ verdict history (000044), leaderboard batches (000045), coding-only resource settings (000046), SEB sessions (000047), partial code scoring (000048), public leaderboard freeze snapshots (000049), and Yandex backup-contest tables (000050, 000051; no longer used by the API, kept for recruitment-backup). Stop old API writers and drain in-flight preparation, apply through 000051, then start the new API with the same SUBMISSION_MAX_PENDING on every replica. Do not mix old and new writers. See rollout and rollback requirements. make migrate-up applies only pending migrations; do not force the version or roll back a production database.

On pushes to main, the deployment pipeline applies pending migrations before rolling out the ECS service. A separate manual migration deployment is not required.

Coding questions accept time_limit in milliseconds (1–10000) and memory_limit in MiB (2–500). New coding questions default to 1000 ms / 256 MiB; omitted limits on edits preserve existing settings. MCQs reject these request fields, omit them from responses, and store NULL for both columns. Scored jobs convert milliseconds to seconds and MiB to Judge0 KiB, retaining the 10-second wall limit and disabled networking. Run Code keeps its independent bounds. Prepared execution snapshots retain their saved limits; recovery without a snapshot uses the question settings.

Migration 000046 restores coding-only columns after their removal in 000042. If upgrading from schema 41 or earlier, back up coding limits before applying migrations and restore them after 46: migration 42 irreversibly drops their old values. Databases already migrated past 42 receive defaults for existing coding questions. Rolling back 46 drops the restored limits again. Apply migrations and deploy the backend before exposing the frontend controls.

Migration Commands

# Create a new migration
make migration create_users_table

# Run migrations up
make migrate-up

# NOT AVAILABLE ON PROD - Rollback migrations (specify number of steps)
make migrate-down 1

# NOT AVAILABLE ON PROD - Force migration version (use with caution)
make migrate-force 1

Problem authoring

Object storage

Problem descriptions, coding testcases, expected outputs, and submitted code use the private bucket configured by S3_SUBMISSIONS_BUCKET. For Neon object storage, set AWS_ENDPOINT_URL_S3 to the branch's S3 endpoint, AWS_REGION to its storage region, AWS_ACCESS_KEY_ID to a credential's token_id, and AWS_SECRET_ACCESS_KEY to its s3_secret_access_key. The existing client enables path-style requests when an endpoint is supplied. Keep credentials in .env; use a credential scoped to the intended branch with storage read/write access.

The local setup checked on 14 October 2026 uses the PointBlankRecruitment project's development database and storage branch (br-young-base-a1ey83m1), private bucket rec, and storage region ap-southeast-1. The supplied local DB_ADDR does not point to the branch named production. Verify the database hostname and storage branch together before running migrations or deploying.

Editing problems

Finish problem edits and deletion before the contest starts. New update and delete requests return 409 once the contest starts, including after it ends, to preserve verdicts and leaderboard scores. Finish any in-flight edits before opening the round. The start time cannot be changed once the contest starts; end-time extensions remain allowed. Correcting a started contest requires controlled regrading and score reconciliation.

Testcase caching

Testcase/answer pairs share concurrent loads and cache successful reads per replica: 64 entries, 32 MiB of accounted key/slice/string data, five-minute TTL from loading. Expiry is checked on access; eviction removes the oldest load. These limits do not bound in-flight downloads or total process memory. Failures and oversized results are not cached. Shared loads have a five-second timeout independent of each caller; callers can cancel their own wait. Returned slice containers are copied. Problem edits publish both objects under a new version directory before updating the problem key, so replicas cannot mix old inputs with new answers. Hidden cases remain server-side. Old versions remain until problem deletion; legacy objects overwritten outside the edit API may stay cached for five minutes.

Keep problem editing paused until all backend replicas and the website editor are updated. Reload open admin tabs before resuming edits. Older backends read answers from the canonical path and cannot safely serve versioned edits. After any versioned edit, rollback must retain version-aware readers or migrate references and both objects while traffic is stopped. Deploy the backend before the website editor, which now consumes inputs and answers from one response.

Safe Exam Browser

Apply migration 000047 and deploy all backend replicas and the companion website before an exam. There are no approved-key settings or per-contest SEB endpoints. SEB detection uses the native SEB/<version> user-agent marker and is best effort; a spoofed user agent can bypass detection and no SEB build/configuration is verified.

POST /contests/{id}/browser-session checks authenticated, registered participants in a live exam. Non-SEB browsers set the persistent registration flag seb_not_detected, remain allowed, and do not create cookie sessions. Leaderboard, registration, and post-contest review requests do not create sessions or flags. An existing participation lock remains effective regardless of browser.

SEB clients receive a Secure, HttpOnly, host-only session cookie bound to the participant and contest. Three distinct sessions are allowed, including the initial session. Refresh-free in-site navigation, reconnection, concurrent tabs, and startup retries reuse the cookie. Startup UUIDs deduplicate lost responses; a confirming request acknowledges delivery, after which the UUID cannot restore a deleted cookie. A fourth SEB session sets a persistent registration lock. Admission serializes on the registration. Code, MCQ, and Run admission recheck participation locks and the validated SEB cookie generation under that same lock. An admin reset invalidates in-flight SEB requests that have not been admitted yet; they return HTTP 428 and must resume their cookie session before retrying. Ordinary browsers remain allowed without a SEB generation. Replays of previously accepted code requests still resolve to their original submission.

Admin-only POST /admin/contests/{contestId}/contestants/{userId}/reset-browser-sessions sets the current count to zero and clears that session lock. It advances browser_session_generation and records the authenticated admin ID, previous count, and timestamp in browser_session_resets. Prior session history and the non-SEB flag are preserved. A resumed SEB client is admitted as session 1 of 3 without restarting. Startup requests with an old generation return HTTP 409 with BROWSER_SESSION_STALE and the current generation; the client reconciles and rotates its startup UUID instead of replaying old observations.

Configure SEB to clear session cookies on exam startup. This tracks application sessions rather than proving individual SEB process launches. CloudFront must forward cookies, credentialed CORS must allow the explicit frontend origin, and the existing clock-header exposure/no-cache requirements still apply. No SEB keys, custom proof headers, or additional public-origin environment variables are needed. Migration 47 rollback deletes the session history, audit records, and browser flags.

Run go test -race ./... with a disposable TEST_DATABASE_URL for HTTP admission, secure cookie attributes, non-SEB allowance, concurrent limits/resets, stale retries, audit identity, and locked code/MCQ admission checks. The frontend also has Chromium/Firefox session and admin-reset regressions.

Server time for browser clocks

All responses include X-Server-Time-Ms, the application server's current Unix time in milliseconds sampled immediately before headers are committed. CORS exposes it, including on errors and early request-bound rejections. Responses use Cache-Control: private, no-store so cached timestamps cannot establish a client clock. The existing endpoints and JSON bodies are unchanged.

CORS runs after routing, so ordinary OPTIONS responses retain their Allow metadata. It runs after request logging and before body bounds: OPTIONS requests are logged and intentionally short-circuit body limits, while application telemetry continues to exclude OPTIONS. POST/admin/callback limits are unchanged.

Deploy this backend change before the frontend clock integration. No migration is required. Application hosts must keep their system clocks synchronized; the frontend uses the same server clock as contest admission checks.

Private response caching

The /admin group sets Cache-Control: private, no-store before authentication. Contest details (including is_registered), gated problem details, and candidate session status also set it at handler entry, covering success and error responses independently of the global response policy.

CDN rules must respect origin cache directives or bypass caching for these paths. An explicit edge-TTL override can ignore origin headers; purge any previously cached private responses when correcting such a configuration.

MCQ result visibility

MCQ submission status, details, and history return attempted until the contest ends, then the stored verdict (accepted or wrong_answer). The problem overview shows attempted/unsolved while open and solved/failed after closing. The public live leaderboard includes coding results immediately. MCQ scores, solved counts, ranks, and solve times update together at five-minute intervals from contest start (5, 10, 15 minutes, etc.), including submissions made and verdicts finalized before the latest interval boundary. Delayed grading and regrading publish at the next boundary; previously published MCQ verdicts remain in effect until then. Admins see all results immediately, and the public leaderboard shows all results as soon as the contest ends. Incorrect or pending answers do not count as solves. The leaderboard includes separate dsa_solved and mcq_solved counts. Public per-problem breakdowns include DSA questions, including those not attempted; MCQ breakdowns remain admin-only. DSA test-case counts come from the submission earning the displayed score, rather than the latest attempt. Public freezes save these counts and DSA breakdowns together with the rankings. Snapshots created before this update omit the split counts and breakdowns until an admin unfreezes the leaderboard. MCQ verdict history is stored in PostgreSQL so publication is consistent across replicas and restarts. The first public request for a cutoff atomically freezes its MCQ problem totals in PostgreSQL; subsequent pages and replicas reuse them, even after cache expiry. A grading transaction that commits after this snapshot waits for the next batch. Code results continue to update independently. Snapshots are retained for viewed batches until the contest is deleted. Admins can separately freeze the public leaderboard at its current snapshot for suspense. Submissions and score processing continue normally, admin leaderboard views remain live, and unfreezing reveals the current ranking. Freezing again keeps the original snapshot. Freeze before the contest ends to hide final results: the public sees full results as soon as an unfrozen contest ends. Overlapping freeze or unfreeze changes return 409 Conflict; retry after the current change finishes. If a freeze remains active after the contest ends, public viewers continue to see the saved snapshot until an admin releases it. Hiding or disqualifying a user during a freeze removes them from the snapshot and closes the rank gap (ties stay tied). Unhiding restores them only if they were visible when the freeze began; users hidden at that moment reappear when the freeze is released. Existing verdicts first publish at the next boundary after the history migration. Submission times retain their existing one-second precision. Batch aggregate changes can still reveal MCQ correctness, even while individual submission verdicts are masked.

PostgreSQL tests

Use a disposable PostgreSQL 12+ database. The tests create isolated schemas, apply all available migrations, and clean up afterward. They skip when TEST_DATABASE_URL is unset.

TEST_DATABASE_URL='postgres://user:password@localhost/test_db' go test -race ./internal/stores -count=1

The opt-in contest load test starts 600 simultaneous submission requests with ten testcases each, then checks polling and duplicate callbacks racing three recovery workers. Recovery repeats 30-second sweeps, waiting 15 seconds between unfinished sweeps, with a 90-second total drain deadline. A third scenario holds a 100-job queue during the initial burst, then completes recovery jobs after 10 ms to exercise capacity deferral. Cancellation can require another poll of an unfinished batch. It uses real PostgreSQL and simulated S3/Judge0; it does not certify the production Judge0 fleet. It uses the configured database pool (defaults: 25 open/idle).

RUN_JUDGE0_LOAD_TEST=1 TEST_DATABASE_URL='postgres://user:password@localhost/test_db' \
  go test -race ./internal/stores -run '^TestJudge0ContestLoadPostgres$' -count=1 -v

Judge0 deployment & Environment configuration

  • Stop old backend replicas before applying migrations through 000032, then start this build; use PostgreSQL 12+. Migration 32 preserves active deadlines but removes claim_until, so backends expecting that column cannot run against the new schema. For a rollback to a migration-31 build, stop replicas and revert migration 32 first.
  • Set SUBMISSION_RATE_LIMIT_SECONDS (default: 5s) and LEADERBOARD_CACHE_TTL_SECONDS (default: 3s, max: 60s) identically across backend replicas.
  • Set JUDGE0_URL and JUDGE0_AUTH_TOKEN. Keep the Judge0 API inaccessible to contestants.
  • Use localhost or a private network for production Judge0 traffic. SSH forwarding is for local verification.
  • Enable callbacks with JUDGE0_CALLBACK_BASE_URL and the same JUDGE0_CALLBACK_SECRET on every backend replica. Verify a signed callback reaches the backend from Judge0.
  • For a local backend without an inbound callback address, leave both callback settings empty. The existing recovery worker fetches results every 15 seconds; callbacks are not required for this local setup.
  • Size the Judge0 queue and worker fleet for participants × testcases × submission waves, plus existing backlog. For 600 contestants with ten testcases, one wave is 6,000 jobs; the inspected queue limit of 100 cannot absorb that burst directly. Explicit queue-full responses leave scored work pending in PostgreSQL. Recovery pauses its tokenless dispatch lane for one second before retrying within the existing sweep budget; polling continues. Definitive rejections need no ambiguous-dispatch callback grace. Queue-full responses, failed connections (including DNS failures), and chunks never sent do not consume the dispatch retry budget. They stay pending through a long outage. This prevents false verdicts, not queueing delays. Measure completion time on staging.
  • Source must decode to valid UTF-8; malformed source returns HTTP 400 before submission creation.
  • Execution inputs are saved before dispatch. Recovery claims rows with PostgreSQL FOR UPDATE SKIP LOCKED and makes network requests after releasing the locks. Claims last 30 seconds; sweeps use a continuing 15-second ticker and a 30-second work budget. A tick that falls during a sweep does not add a 15-second sleep afterward. Polling and tokenless dispatch run independently, so a slow POST cannot block healthy results.
  • Retry budgets are shared across replicas: three dispatch reservations or three consecutive failed result observations before judge_error. Crashes can consume dispatch reservations. Definitively unaccepted work refunds only its own reservation and claim increment; earlier ambiguous failures retain their budgets. The initial reservation gives callbacks 30 seconds to arrive; subsequent ambiguous attempts wait at least 30 seconds after dispatch, with backoff.
  • Saving the first token resets the observation budget; duplicate deliveries do not. Queued/running observations reset failures. Contestant errors finalize immediately. Recovery ignores /workers and job age; persistently queued jobs need operator investigation.
  • Both recovery lanes claim up to JUDGE0_BATCH_SIZE jobs per replica (default 20), processing each batch concurrently. Tokenless recovery uses separate bounded POSTs, while known-token observations share one batch GET. Keep DB_MAX_OPEN_CONNS=25 and DB_MAX_IDLE_CONNS=25; update older five-idle configurations and account for every replica's pool when sizing PostgreSQL's connection limit.
  • Routine polling omits stdout and preserves compiler/stderr diagnostics. Only Wrong Answer jobs that might match the blank-output defect fetch stdout. Responses are bounded at 12 MiB per job for two stock 4 MiB diagnostic files plus Base64/JSON; increase the bound if provider file limits grow.
  • Callback signatures bind the dispatch attempt. Stale callbacks and replaced claims cannot overwrite newer results or award duplicate scores. Replace old replicas together after migrations through 000032; keep callback secrets identical.
  • Use stock Judge0 API and workers. A lost response without a timely callback can cause duplicate physical execution on retry. The budget bounds this; scoring remains idempotent.
  • Keep callback signatures out of proxy and load-balancer logs as well as application logs. The signature is in the callback URL query string.

Verdicts map status 6 to compilation error and 13/14 to judge_error. Judge0 has no dedicated memory-limit verdict. Submission runtime is the sum of testcase runtimes; memory is the maximum. Scores come from solved problems; freeze problem scores before starting and use controlled reconciliation for manual database adjustments.

Judge0 1.13.1 miscompares null stdout with blank expected text. Shared finalization corrects this exact case from the saved expected output. Other wrong answers, stale attempts, and terminal results remain unchanged. Legacy callbacks without snapshots save their token and defer grading to recovery. Historical verdicts need explicit regrading.

For live verification, supply LIVE_JUDGE0_URL and a disposable TEST_DATABASE_URL to go test -race ./internal/stores -run TestLiveJudge0 -count=1. Callback checks also need LIVE_JUDGE0_CALLBACK_BASE_URL routed from the worker to 127.0.0.1:23582.

Run API (website issue #29)

Run is disabled by default: /submission/run returns 404 unless ENABLE_RUN=true is set before backend startup. Keep it disabled until mixed Run/Submit capacity is measured on the shared judge. This switch applies at the API, including direct calls.

POST /submission/run requires the existing Firebase bearer token and accepts raw UTF-8:

{"contest_id":"live-contest-id","language":"python","code":"print(input())\n","stdin":"hello\n"}

Languages match submit. Code and stdin are each limited to 64 KiB; the JSON body to 1 MiB. One job runs without expected output or callback: 2s CPU, 5s wall time, 256 MiB memory, 64 KiB file size, network disabled. PostgreSQL enforces one attempt per user every five seconds and at most one Run admission per database clock second across all replicas, using the existing cooldown table. After reserving that admission, it rejects Run if any scored code submission is pending, including parents without execution snapshots. Rejections return 429, Retry-After: 5; explicit Judge0 queue-full responses do too. Run creates no contest rows, storage objects or ranking changes. The required contest_id must identify a live registration, and detected SEB clients must present their confirmed cookie. Omitted IDs return HTTP 400. Admission also checks every active contest registration for manual completion, tab termination, and browser lockout, so omitting the ID or substituting another contest cannot bypass a participation lock. The website supplies the active contest ID; standalone Run without a contest is not supported.

The backlog guard includes every contest because recovery can still dispatch old pending work. Before enabling Run, inspect unresolved submissions:

SELECT contest_id, count(*) AS pending_code
FROM submissions WHERE type='code' AND status='pending'
GROUP BY contest_id;

Investigate old rows through the recovery checks above; ending or force-consolidating a contest does not cancel its Judge0 work. Do not ignore pending rows to enable Run.

The backend polls every 200 ms for at most 15 seconds, without wait=true. Failed status reads retry within that same deadline; malformed responses still fail immediately. Run never resubmits the job. HTTP 200:

{"status":"accepted","stdout":"hello\n","stderr":"","compile_output":"","runtime":125,"memory":2048}

Statuses match submit; runtime is milliseconds and memory is KiB. Each sanitized output field is capped at 4096 UTF-8 bytes. Invalid input returns 400, oversized bodies 413, unavailable judge 502, polling timeout 504. A failed response may leave a job running; no Run token is retained, so the UI must not automatically retry. Website wiring is #29.

The fleet limit also bounds backlog checks to one per database clock second. A Run admitted just before a scored submission can still finish; subsequent Runs stop until the scored backlog drains. This is bounded optional traffic, not strict Judge0 scheduling priority. At most 16 admitted requests can overlap their 15-second waits; queued or compiling jobs can outlive those waits. Compilation uses Judge0's server-wide limits. Measure real mixed workload completion times before enabling Run for a contest.

Before opening a 600-person contest

Use a stable HTTPS endpoint; the temporary Quick Tunnel allows only 200 in-flight requests. Apply the coordinated backend/migration/editor rollout above, update old five-idle database pool settings, and keep Run disabled during initial validation. Test 600 clients with the actual testcase counts, representative languages, bursty submissions and delayed results. Check time to drain, rejected requests, CPU/memory, database waits and final scores; then repeat with Run before enabling it. Synthetic S3/Judge0 tests cannot establish fleet capacity.

Dolos plagiarism checks

When DOLOS_API_URL is configured, a background worker runs every 15 seconds to identify ended contests that have reached a 30-second settling window. For each problem and supported language (Python, C++, C, Java, JavaScript, Go), the worker archives the latest code submission for each contestant into a separate comparison dataset. Groups with fewer than two distinct contestants are skipped.

Set DOLOS_API_URL to https://dolos.ugent.be/api for the public Dolos API or to a self-hosted Dolos API endpoint. Leaving DOLOS_API_URL empty disables automated checks. Note that public reports are accessible by anyone holding the report URL, and the public Dolos service enforces a strict 10 MB archive limit.

Admin REST APIs:

  • GET /admin/contest/{id}/plagiarism: Retrieves overall status, public report URL (if ready), and individual per-problem/language report statuses.
  • GET /admin/contest/{id}/plagiarism/pairs: Retrieves matching submission pairs across finished problem reports with similarity metrics and human review decisions. Returns a paginated shortlist of up to 1,000 candidate pairs per problem/language group with similarity >= 20% (0.20), sorted by similarity descending. Response headers include X-Total-Count, X-Truncated (true when any group exceeds 1,000 qualifying pairs), X-Max-Pairs-Per-Report, and X-Min-Similarity. For exhaustive review beyond the 1,000-pair shortlist, consult the complete per-group Dolos report URL from GET /admin/contest/{id}/plagiarism.
  • PATCH /admin/contest/{id}/plagiarism/pairs/{pairKey}: Records human review decisions (cleared, confirmed, unreviewed) with an optional note (up to 1000 characters) for a verified pair in the report evidence.

Apply migration 000033 before deploying. Pair review PATCH requests must include the displayed report_id. Note that frontend UI integration for Dolos is not yet shipped; these endpoints are accessible via admin API clients.

Rerunning Plagiarism Checks

After inspecting the report error, reset known failures or purged provider reports with:

UPDATE contest_plagiarism_reports
SET status = 'pending', attempts = 0, claim_token = NULL, error = NULL, next_retry_at = NOW(), uploaded_at = NULL, updated_at = NOW()
WHERE contest_id = '<contest_id>'
  AND status IN ('failed', 'error', 'purged', 'unavailable')
  AND COALESCE(error, '') NOT LIKE 'Dolos upload outcome is ambiguous%';

An interrupted upload or lost response may mean Dolos accepted the dataset without returning its ID. Errors starting with Dolos upload outcome is ambiguous require operator resolution and are excluded above. Reconcile the remote outcome before clearing that state. If it cannot be resolved, reuploading deliberately creates another external dataset and may leave the original dataset without a locally known ID.

Local connection to the EC2 judge

Forward the judge's private HTTP port over SSH for local verification:

ssh -CNT -p 6622 \
  -o ExitOnForwardFailure=yes \
  -o ServerAliveInterval=30 -o ServerAliveCountMax=3 \
  -L 127.0.0.1:2358:127.0.0.1:2358 ubuntu@13.205.163.28

Use these backend .env settings:

JUDGE0_URL=http://127.0.0.1:2358
JUDGE0_AUTH_TOKEN=
JUDGE0_CALLBACK_BASE_URL=
JUDGE0_CALLBACK_SECRET=
JUDGE0_TIMEOUT_MS=10000
JUDGE0_BATCH_SIZE=20
SUBMISSION_RATE_LIMIT_SECONDS=5
LEADERBOARD_CACHE_TTL_SECONDS=3

Supply JUDGE0_AUTH_TOKEN if API authentication is enabled. Keep the API private; localhost above refers to the machine running the tunnel. Deployed backends need an address reachable from their own network.

Check the API version, then run the live tests above to verify worker execution:

curl --fail http://127.0.0.1:2358/about

An empty /workers response does not prove execution is unavailable. Verify the target database's migration version before each deployment.

About

The backend server to serve the recruitment website

Resources

Contributing

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages