chore: remove publisher/scheduler services, prune scripts/#58
Open
dotjae wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
publisher/andscheduler/directories. Their GTFS-RT builder logic now lives inbackend/schedule_engine/tasks.py(build_vehicle_positions,build_trip_updates), and the 15-second beat schedule lives inbackend/databus/celery.pyapp.conf.beat_schedule— explicit in code rather than DB-backed.scripts/to the survivors:dev.sh,prod.sh,inspect_redis.py,cleanup_redis.py. Removescontinuous_simulator.pyandredis_seed_data.py(superseded by the externalsimulator/repo, which publishes MQTT telemetry to thetelemetry-broker), the one-offrename_operation_to_operations.sql, and the per-dirpyproject.toml/uv.lock.backend/feed/files/perbuild-gtfs-realtimespec.PYTHONPYCACHEPREFIX=/tmp/pycacheon the four backend services so each container writes bytecode to its own ephemeral path. Without this, the four containers race to rewrite.pycfiles in the bind-mounted source tree whenever a heavily-imported file changes, surfacing asOSError: [Errno 35] Resource deadlock avoidedon startup..gitignoreupdated to drop the obsoletepublisher/feed/files/entries and ignore the newbackend/feed/files/*.pb/.jsonoutputs.Test plan
docker compose -f compose.dev.yml configparses withoutpublisherorschedulerservice entries.bash scripts/dev.shstarts cleanly; no crash-loops, no EDEADLK during Django startup.orchestratorcontainer:from schedule_engine.tasks import build_vehicle_positions, build_trip_updatesimports without error andbuild_vehicle_positions.delay()enqueues againstschedule_enginequeue.backend/feed/files/containsvehicle_positions.{json,pb}andtrip_updates.{json,pb}.git grep -nE 'publisher/|scheduler/'returns nothing meaningful.