Skip to content

Conversation

jonathanmetzman
Copy link
Collaborator

@jonathanmetzman jonathanmetzman commented Aug 8, 2025

This should make it possible to preprocess e.g. mac tasks on linux but then execute utask_main on the mac pool.

Here's a summary of the changes: I modified the task queuing logic for `utask_main` tasks. Previously, all `utask_main` tasks were sent to the `UTASK_MAIN_QUEUE`, which was problematic for non-Linux jobs that need to run on specific platforms.

I've updated `add_utask_main` to check the job's platform. If the platform isn't Linux, it now uses `queue_for_job` with a new `force_true_queue` parameter to find the correct, platform-specific queue. This ensures that non-Linux `utask_main` tasks are routed to the appropriate bots.

Linux jobs will continue to use the `UTASK_MAIN_QUEUE` as before.

Finally, I added tests to verify the new queuing logic.
…eue.

I modified the task queuing logic for `utask_main` tasks. Previously, all `utask_main` tasks were sent to the `UTASK_MAIN_QUEUE`, which was problematic for non-Linux jobs that need to run on bots with the correct platform.

Now, I've updated `add_utask_main` to get the platform from the environment and use `queue_for_platform` to get the correct, platform-specific queue. This ensures that non-Linux `utask_main` tasks are routed to the correct bots.

Linux jobs will continue to use the `UTASK_MAIN_QUEUE` as before.

I also updated the tests to verify the new queuing logic.
Copy link
Contributor

@javanlacerda javanlacerda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could we deploy it in staging before?

if platform.upper() == 'LINUX':
queue = UTASK_MAIN_QUEUE
else:
thread_multiplier = environment.get_value('THREAD_MULTIPLIER')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that still used?

Copy link

github-actions bot commented Oct 7, 2025

This pull request has not had any activity for 60 days and will be automatically closed in two weeks

@github-actions github-actions bot added the stale label Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants