Skip to content

API which provides MTA subway turnstile entries and exit data

Notifications You must be signed in to change notification settings

murphyb2/nyc-subway-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Celery - Scheduled Task Updating

In Production

In production, celery beat can be embedded into the worker. We only ever have one task running so this works fine as one process.

celery -A subwayapi worker -B -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler

In Development

You can use the production command in development UNLESS you are running on a Windows machine. In which case celery beat needs to run in a separate service. Run the following commands in to terminal instances:

celery -A subwayapi beat -l INFO
celery -A subwayapi worker -l info --pool=solo

Releases

No releases published

Packages

No packages published