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

Docudigger exits although recurring should be active #1206

Open
maxkostas opened this issue Nov 23, 2024 · 0 comments
Open

Docudigger exits although recurring should be active #1206

maxkostas opened this issue Nov 23, 2024 · 0 comments

Comments

@maxkostas
Copy link

maxkostas commented Nov 23, 2024

Hello!

I have an issue in the docker image in which the docudigger exist although recurring is active.

Here is my docker file:

name: amazon
services:
    docudigger:
        environment:
            - AMAZON_USERNAME=XXXX
            - AMAZON_PASSWORD=XXXX
            - AMAZON_TLD=de
            - AMAZON_YEAR_FILTER=2024
            - AMAZON_PAGE_FILTER=1
            - ONLY_NEW=true
            - RECURRING=true
            - RECURRING_PATTERN=*/10* * * *
            - FILE_DESTINATION_FOLDER=home/node/docudigger/XXXX
            - LOG_LEVEL=debug
        volumes:
            - C:/Users/XXXX/amazon:/home/node/docudigger/
        image: ghcr.io/disane87/docudigger:2.0.7-dev.3
volumes:
    C:
        external: true
        name: C

I would assume that with the above setup it should run every 10 minutes. However once the first run is done it exists with:

2024-11-23 01:07:06 [0] [debug] [2024-11-23 00:11:06] [scrape:amazon]:  Getting invoice documents...
2024-11-23 01:07:06 [0] [info] [2024-11-23 00:11:06] [scrape:amazon]:   Year "2015" done. Skipping to next year
2024-11-23 01:07:06 [0] [info] [2024-11-23 00:11:06] [scrape:amazon]:   Recurring activated. Not terminating. Waiting for next run.
2024-11-23 01:07:06 [0] docudigger scrape all exited with code 0

I have also tried it directly with NPM and it seems that the same behaviour also occurs there:

docudigger scrape amazon --username "XXXX" --password "XXXX" --fileDestinationFolder="C:\Users\XXX\Meine Ablage\PDF\Amazon\XXXX" --logPath="C:\test" --logLevel="debug" --recurringCron="0 1 * * *" --recurring --onlyNew

[info] [2024-11-23 01:11:00] [scrape:amazon]:   Year "2015" done. Skipping to next year
[info] [2024-11-23 01:11:01] [scrape:amazon]:   Recurring activated. Not terminating. Waiting for next run.

C:\Users\XXXX

I am unsure if what I am trying to do is possible - but this is what I am trying to do:

Have the script run once a day (0 1 * * *) and with the first run download all invoices and once that is done run once a day and only download new invoices.

Thank you!

@maxkostas maxkostas changed the title Docudiggers exits although recurring should be active Docudigger exits although recurring should be active Nov 23, 2024
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

1 participant