-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Parent: #560
Summary
Add user_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0 column to datamachine_jobs table. Denormalized from flow/pipeline for direct query performance.
Code Changes
Schema
inc/Core/Database/Jobs/— add column toCREATE TABLE, add index- Migration —
ALTER TABLE+ backfill from flow'suser_idor admin user
Repository Methods
create_job()— acceptuser_idparam (set from execution context)get_jobs()/ list methods — add optionaluser_idfilterget_job()— no change (by ID)
CLI
wp datamachine jobs list— add optional--userflagwp datamachine jobs show— no change (by ID)
Engine
- Job creation in engine — pull
user_idfrom execution context and persist
Backward Compatibility
DEFAULT 0, backfill to admin user- Existing jobs are historical — backfill is informational
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels