Skip to content

Conversation

@kraftp
Copy link
Member

@kraftp kraftp commented Dec 11, 2025

You can now retrieve your executor ID from DBOS.executor_id. Additionally, you can now filter by executor ID in list_workflows and `list_queued_workflows.

@dosubot
Copy link

dosubot bot commented Dec 11, 2025

Related Documentation

Checked 8 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

Copy link
Member

@qianl15 qianl15 left a comment

Choose a reason for hiding this comment

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

Good fix. Let's also implement this in other SDKs.

query = query.where(
SystemSchema.workflow_status.c.queue_name == input.queue_name
)
if input.executor_id:
Copy link
Member

Choose a reason for hiding this comment

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

Should we also add this to Conductor?

Copy link
Member Author

Choose a reason for hiding this comment

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

Future PR

# Search only currently enqueued workflows
self.queues_only: bool = False
# Search only for workflows run by this executor
self.executor_id: Optional[str] = None
Copy link
Member

Choose a reason for hiding this comment

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

Also, it might be better to make this a list of IDs instead of just one?

Copy link
Member Author

Choose a reason for hiding this comment

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

The comparable options (queue name, app version) are singles. Now, maybe we make those all lists later (or allow you to pass in either a single or a list), but that's a larger change to the API.

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.

3 participants