BaryoDev / BaryoDev/barakoCMS

Jobs: a background caller can queue a job for a named tenant

Open
#528 0 comments 0 reactions 0 assignees View on GitHub
core
Dominant language
C#
Stars
6
Forks
7
Avg merge
4h 21m
Merged PRs (30d)
307

Description

Follow-up to #106 (PR #525). A job queued from a place with no request, such as `WorkflowRunner` (a `BackgroundService`), commits on its own in the default tenant, because the provider finds the caller's tenant through the request scope. A background caller in another tenant has no way to say which tenant the job belongs to.

Done when a background caller can queue a job for a named tenant, the record carries that tenant, and the worker runs it in that tenant's session. This blocks moving webhook delivery (#95) onto the queue for any tenant but the default.

Contributor guide

Open the contributing guide

Research direction

Start by tracing WorkflowRunner and the BackgroundService path into the provider that resolves the caller's tenant, then follow the queued job record and worker session setup. Done means a background caller can name a tenant, the record preserves it, and the worker runs the job in that tenant's session; no test file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.