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

First run of a scheduled add-on isn't setting correct event data #257

Open
duckduckgrayduck opened this issue Dec 4, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@duckduckgrayduck
Copy link
Contributor

Reported by a user. Replicable

I have made a series of tests yesterday and I believe there might be a problem in the way the event data is handled for scheduled Add-On. It seems to me that the first run, which is launched right when the add-on is scheduled, has it event_data ignored by the next run (the first scheduled run).

I have tried this out with MuckRock's scraper plugin to double check that it wasn't a problem from my scrapers.

Create a new project (219912 on my end)
Launch the Scraper addon on page containing one document.
site: https://www.paca.developpement-durable.gouv.fr/bulletin-hydro-decembre-2022-a14857.html
depth: 0
schedule : hourly
Wait for the first run to complete. One file "bulletin_hydro_paca_decembre2022", is uploaded.
Wait for the second run (first scheduled run) to complete. The same file is uploaded.
On subsequent runs, event_data works as expected and the file is not uploaded again.
@duckduckgrayduck duckduckgrayduck added the bug Something isn't working label Dec 4, 2024
@eyeseast eyeseast changed the title Issue with event based Add-Ons First run of a scheduled add-on isn't setting correct event data Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants