• Akki

    (@luckyankit)


    At present when the plugin creates the worker, it sets the failure mode of the worker to Fail Closed (block) mode. Can you please modify the worker code, so that by default it may set worker Failer mode to Fail Open (Proceed) route?

    I have set the worker on many sites and in rare chances, they hit the 1027 limit because worker upon hitting free limit blocks the traffic. I do change the worker failure mode manually during setting it up, but if they probably deactivate the plugin and reactivated back, the worker goes back to default settings.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    do you have any Cloudflare docs on how to implement it as I am unable to find any developer documentation related to it.

    Thread Starter Akki

    (@luckyankit)

    not sure if this is helpful – https://community.cloudflare.com/t/how-to-setting-up-failure-mode-for-route-using-api/184526

    I’ll keep finding more links to share.

    Also you can look into what event.passThroughOnException() does in the code.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    I did look at that link but did not help. If you are using the worker mode can you try adding this line: event.passThroughOnException() just above the return event.respondWith(handleRequest(event)) line [you will find at the end of the script].

    Please try and let me know. As you can understand this can only be tested where this problem is happening so, it is very hard to test here, as I do not have any account exceeding the limit.

    But do the above and let me know if that solves your problem. But the best thing is either to get a paid worker plan to increase your Worker call limit or switch to Page Rule. As when worker limit is exhausted, the caching will not be able to work properly.

    Thread Starter Akki

    (@luckyankit)

    Limit got reset for today but I have said the client to inform me at same time when it happens again. So I could try it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bypass worker when daily limit hits’ is closed to new replies.