#scheduling help
1 messages · Page 1 of 1 (latest)
Welcome!
Someone from <@&938443185347244033> will assist when they're available.
Including the meta.log from the beginning is a huge help, type !logs for more information.
You can press the "Close Post" button above or type /close at any time to close this post.
The default is for things to run every time PMM runs if they are not scheduled individually.
If you want everything to happen on Saturday, all you need to do is run PMM on Saturday.
I have to manually put schedule: weekly(friday) on everything I want to make scheduled right?
Not necessarily. By default, when PMM runs, everything defined in the config happens. So if you run PMM every day, everything happens every day.
If, instead, you want some things to happen only on Friday, then yes, those things needs to be individually scheduled.
If you want everything to happen on Friday, you just need to schedule PMM itself to run on Friday, but don't need to schedule anything at a finer grain.
libraries:
Movies:
metadata_path:
- pmm: actor
- pmm: imdb
schedule: weekly(tuesday)
- pmm: genre
schedule: weekly(thursday)
The actor collections would be processed every time PMM runs.
actor and IMDB collections every time it ran on Tuesday
actor and genre every time it ran on Thursday
These schedules do not make PMM wake up and run. You have to schedule that separately.
With docker, if you leave the container running, it will wake up at 5AM each day to do this.
How do I schedule the container to run on friday, because if I keep it running it just keeps scanning the movies are do it all over again
How are you currently running it?
Portainer
Is PMM_RUN set to true in the env vars on the container? Also, what's the restart policy on the container?
- PUID=1000
- PGID=1000
- TZ=Asia/Amman
- PMM_CONFIG=/config/config.yml
# PMM_TIME=03:00
- PMM_RUN=True
- PMM_TEST=False
- PMM_NO_MISSING=False```
restart: unless-stopped
You have that container set to RUN immediately when it starts and then exit ['PMM_RUN=True'], then you have it set to restart if it exits unless it is explicitly stopped [restart: unless-stopped].
So you start the container, it runs, exits, restarts, runs, exits, restarts, runs, exits, ...
Oh that's why it keeps always running back
One way to do it:
Change the restart policy to "never" and schedule starting the container on Friday.
@celest flicker is this ready to be closed?
Yes