hey,
for our site “41e86779-9d21-42d8-9c9c-f492ca92b575” we have a few “trigger” scheduled functions.
all they do is “call” a background function… (as background functions can not be scheduled)
export default async function handler() {
await fetch(`https://foo.com/some-background`, {
method: 'POST',
headers: {
'x-api-key': '1234',
},
});
return new Response(undefined, { status: 200 });
}
and that seemed to work fine for some time - but since a week or so the background function get triggered double.
If we look into the logs of the trigger it looks totally fine
e.g. get’s called once a day at around 7 am.
BUUUT when we check the actual background function then it is executed two times
Also in some of those background functions we do send an email… and those emails are double so it’s definitely executed two times.
Any idea why that happens? (and what changed? I assume it worked ok before as we never had anyone complain before)

