documentcloud
documentcloud copied to clipboard
First run of a scheduled add-on isn't setting correct event data
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.