Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python][Bug] Yielded pipeline does not run on the specified task queue. #52

Open
mayankbhagya opened this issue Aug 9, 2015 · 3 comments

Comments

@mayankbhagya
Copy link

I have a pipeline 'P2' which has overridden the 'queue_name' property and returns 'Q2'.
I have another pipeline 'P1' which runs on the 'default' queue and yields 'P2'.
When yielded, the 'P2' task still runs on the 'default' queue rather than 'Q2'.

Is that a bug? Or is that behavior expected?

@aozarov and I had a related discussion here: http://stackoverflow.com/questions/31854634/set-queue-name-in-yielded-pipelines

@soundofjw
Copy link

Not expected but we have the same issue. Definitely worth investigating
further.

On Sun, Aug 9, 2015, 1:25 AM Mayank Bhagya [email protected] wrote:

I have a pipeline 'P2' which has overridden the 'queue_name' property and
returns 'Q2'.
I have another pipeline 'P1' which runs on the 'default' queue and yields
'P2'.
When yielded, the 'P2' task still runs on the 'default' queue rather than
'Q2'.

Is that a bug? Or is that behavior expected?

@aozarov https://github.com/aozarov


Reply to this email directly or view it on GitHub
#52.

@mayankbhagya
Copy link
Author

I think that happens because the queue name is taken from _PipelineContext rather than the pipeline itself.

I am still not sure because I haven't investigated whether the yielded pipelines inherit the context from their parent pipelines.

@mayankbhagya mayankbhagya changed the title [Python][Question] Yielded pipeline does not run on the specified task queue. [Python][Bug] Yielded pipeline does not run on the specified task queue. Aug 19, 2015
@cdman
Copy link

cdman commented Jul 14, 2016

Yes, I too would love to have this feature (controlling the task queue on a per-task rather than per-pipeline basis). My usecase is the following: I have some tasks which require a small number of larger (B4) instances while others require a large number of smaller (F2) instances. Thus I have two modules: one with auto-scaling F2s and the other with manual scaling B2s. I would be nice to integrate all this with pipelines (currently it's a Rube-Goldberg machine with tasks and asynchronous pipelines).

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

No branches or pull requests

3 participants