# Question: Task Scheduling and prioritization

**URL:** https://discuss.ray.io/t/question-task-scheduling-and-prioritization/20337
**Category:** Ray Core
**Created:** [November 1, 2024, 3:12pm UTC](https://discuss.ray.io/t/question-task-scheduling-and-prioritization/20337 "2024-11-01T15:12:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![KAV101](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@KAV101](https://discuss.ray.io/u/KAV101)
#### Post date: [November 1, 2024, 3:12pm UTC](https://discuss.ray.io/t/question-task-scheduling-and-prioritization/20337/1 "2024-11-01T15:12:32Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- None: Just asking a question out of curiosity

Hi there, I’m just learning Ray and had a question regarding task submission. From my understanding when we call actor.method.remote() the task is scheduled in such a way that it’s called sequentially for the actor.

Is there a way to raise priority or in essence skip the queue of tasks for a given method.

Here’s an example. If we implement a rudimentary Policy actor in a Self-play context, the actor will receive calls for inference by the self-play actors. eventually we’d want to update that Policy actors state\_dict to align with the current evolution of a training model.

is it possible to push the update of weights to the front of the queue so it finishes what ever inference its currently doing and then update?

Thanks for reading.

---

<div class="post-metadata">

### Author: ![Mengjin\_Yan](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Mengjin\_Yan](https://discuss.ray.io/u/Mengjin_Yan)
#### Post date: [November 2, 2024, 5:09am UTC](https://discuss.ray.io/t/question-task-scheduling-and-prioritization/20337/2 "2024-11-02T05:09:24Z")

</div>

Hi @KAV101, I don’t think Ray today support actor task priority.

At the same time, for the specific example, one thing you can try is to use [AsyncIO actor or threaded actor](https://docs.ray.io/en/latest/ray-core/actors/async_api.html) and leverage [Concurrency Groups](https://docs.ray.io/en/latest/ray-core/actors/concurrency_group_api.html) to essentially have 2 tasks queues for the 2 functions you’d like to call on the Policy actor. But need to keep in mind that, you might need to be careful about the any race conditions.
