Skip to content

Conversation

@AlliBalliBaba
Copy link
Contributor

As seen in #1490, it's currently possible to register 2 workers for the same filename.

This PR will return an error in this case. Having 2 workers with the same filename will just result in the worker that's registered last overwriting the previously registered worker in the workers map.

@IndraGunawan
Copy link
Contributor

i think we should check the duplicate worker.name as well

#1376 (comment)

@AlliBalliBaba
Copy link
Contributor Author

Alright, it will now also error on duplicate worker names 👍

@dunglas dunglas merged commit 8125993 into main Apr 29, 2025
57 of 58 checks passed
@dunglas dunglas deleted the fix/error-on-same-filename branch April 29, 2025 08:18
@dunglas
Copy link
Member

dunglas commented Apr 29, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants