VCST-4673: Preserve System Context for Hangfire Background Jobs#2982
VCST-4673: Preserve System Context for Hangfire Background Jobs#2982
Conversation
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.209
Timestamp: 24-02-2026T13:31:42
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.745
Timestamp: 24-02-2026T14:15:42
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.833
Timestamp: 24-02-2026T15:28:55
|
1 similar comment
|
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.554
Timestamp: 24-02-2026T15:49:27



Description
This feature focuses on supporting system context for background jobs:
References
QA-test:
Jira-link:
https://virtocommerce.atlassian.net/browse/VCST-4673
Artifact URL:
Note
Medium Risk
Changes affect audit attribution and background-job identity propagation; misconfiguration or unexpected user resolution could alter
CreatedBy/ModifiedByvalues in persisted data and logs.Overview
Recurring Hangfire jobs now set the thread user context to
system:{RecurringJobId}during execution, instead of relying solely on the storedUSER_NAMEjob parameter.Auditing triggers now always write
ModifiedByfrom the currentIUserNameResolver(removing the previous guard that kept the original value when it wasunknown), andHttpContextUserResolverreturnshttp:anonymouswhen a request exists but is unauthenticated (plus minor constant renames).Written by Cursor Bugbot for commit 6cc6e31. This will update automatically on new commits. Configure here.
Image tag:
ghcr.io/VirtoCommerce/platform:3.1007.0-pr-2982-6cc6-vcst-4673-6cc6e31d