Skip to content

Add support for specifying RQ dst for add_requests and enqueue_links methods #1402

@vdusek

Description

@vdusek

Follow-up issue to #1175.

Add requests context helper

Currently, there is no option for specifying the destination (always the default RQ); but we can add it.

# Default RQ
await context.add_requests(requests)

# Global scope RQ (name)
await context.add_requests(requests, rq_name='rq_global_scope')

# Run scope RQ (alias)
await context.add_requests(requests, rq_alias='rq_run_scope')

Enqueue links context helper

Currently, there is no option for specifying the destination (always the default RQ); but we can add it.

# Default RQ
await context.enqueue_links()

# Global scope RQ (name)
await context.enqueue_links(rq_name='rq_global_scope')

# Run scope RQ (alias)
await context.enqueue_links(rq_alias='rq_run_scope')

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions