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

Add automatic background job runs to Docker containers #468

Closed
pglombardo opened this issue Nov 10, 2022 · 4 comments
Closed

Add automatic background job runs to Docker containers #468

pglombardo opened this issue Nov 10, 2022 · 4 comments
Labels
dependencies Pull requests that update a dependency file feature request

Comments

@pglombardo
Copy link
Owner

The application can preemptively expire and clean up pushes. This is done daily on pwpush.com in a hacky automated fashion.

The two tasks are (run from the command line):

  1. rake daily_expiration
  2. rake delete_expired_and_anonymous

We can add the automated run of these tasks by adding cron to the Docker containers and using the whenever gem to schedule the daily task.

@ivancarlosti
Copy link

A kindly reminder or workaround to have it ;)

@pglombardo
Copy link
Owner Author

I've started this 3 times before getting interrupted every time. :-)

I will get to this soon. In the meantime, you can run the tasks as cron jobs:
Screenshot 2024-10-03 at 08 45 19

@pglombardo
Copy link
Owner Author

#2601 is in progress. This will add a new Docker container dedicated at running background tasks. Thanks for the nudge!

@pglombardo
Copy link
Owner Author

pglombardo commented Oct 17, 2024

The pwpush-worker docker container image is out (quietly). Once it stabilizes, get enough feedback and write documentation I'll make a larger announcement.

tldr on how to run: just run with the same environment as the pwpush container. It will automatically run periodic background jobs. A dashboard to view executions is in progress in #2638

https://hub.docker.com/r/pglombardo/pwpush-worker/tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file feature request
Projects
None yet
Development

No branches or pull requests

2 participants