Apify and Crawlee Official Forum

Updated 3 months ago

why is crawlee running old deleted code for the first url?

main.ts
Plain Text
import { PlaywrightCrawler } from 'crawlee';
import { router } from './routes.js';

const startUrls = [
  11 links
  ...
];

const crawler = new PlaywrightCrawler({
    requestHandler: router,
    maxRequestsPerCrawl: 1,
    maxRequestRetries: 0,
    maxRequestsPerMinute: 16,
    maxConcurrency: 1,
    headless: false,
});

await crawler.run(startUrls);

I've updated route.ts and after npm start everything works fine for the last 10 links but for the first link it is running old deleted code for some reason(confirmed by testing multiple times, editing different things). I tried deleting request queue but same thing happened. I'm at a loss for what is happening.
M
P
O
3 comments
Hello! This is not an expected behavior: could you share more details? Why do you say it's running deleted code? Are you running it locally or on the platform?
Hi @C-Weed , It does sound like some leftovers in the RequestQueeue. How do you run the Actor?
also, if You are using VS code, You possibly have "auto-save" option being disabled ?
Add a reply
Sign up and join the conversation on Discord