#scheduling help

1 messages · Page 1 of 1 (latest)

celest flicker
#

Is there any specific command to put so I can schedule everything together like on saturday? for example without having to manually put every single schedule: weekly(friday)

grave coveBOT
#

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.

earnest shale
#

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.

celest flicker
#

Can it run automatically on saturday?

#

Dockers btw

earnest shale
celest flicker
#

I have to manually put schedule: weekly(friday) on everything I want to make scheduled right?

earnest shale
#

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.

celest flicker
#

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

earnest shale
#

How are you currently running it?

celest flicker
#

Portainer

earnest shale
#

Is PMM_RUN set to true in the env vars on the container? Also, what's the restart policy on the container?

celest flicker
#
      - 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

earnest shale
#

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, ...

celest flicker
#

Oh that's why it keeps always running back

earnest shale
#

One way to do it:
Change the restart policy to "never" and schedule starting the container on Friday.

dense geyser
#

@celest flicker is this ready to be closed?