Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule google_publish command in Heroku #87

Open
3 tasks
adborden opened this issue Nov 19, 2019 · 3 comments
Open
3 tasks

Schedule google_publish command in Heroku #87

adborden opened this issue Nov 19, 2019 · 3 comments

Comments

@adborden
Copy link
Member

adborden commented Nov 19, 2019

As an Administrator, I want Census Events to publish events regularly to Google Calendar, so that no human action is required to keep approved events on the public calendar.

Heroku Scheduler is similar to cron. You create a schedule to run a single command. The command would be python manage.py google_calendar. Running every 10 minutes is probably a good start.

Acceptance criteria

  • google_publish is run regularly on production
  • documentation is updated to include any app-specific details to set this up for future deployments
@mikeubell
Copy link
Collaborator

I wonder if it is possible to just publish an event when it is approved. I don't think there is any great advantage to batching the updates to Google.

@adborden
Copy link
Member Author

#5 is the issue for the feature you're referring to.

Yes it's possible. census.google_publish.google_publish_event will do it. You just need to test that it's not published yet.

@mikeubell
Copy link
Collaborator

I don't think this is necessary as we can publish as changes happen.

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

No branches or pull requests

2 participants