Skip to content

Conversation

@sghf
Copy link
Contributor

@sghf sghf commented Jan 16, 2026

No description provided.

sghf and others added 22 commits January 14, 2026 18:59
- POST /feed/action for "begin_action"
- Updated API version to 1.0.9.
- Use a single queue for both begin and end actions
- Update the queue if the begin action has not been processed yet, to avoid having both begin and end actions
Call it at the end of the pushpkg feed job.
For speed by using sql simpler exec plans, at the cost of more requests.
The sql was too complex and the task did not exist in oc2
Also simplify the scheduler config, moving away from per-task
directories setup, to a scheduler-level directories map:

	scheduler:
	  directories:
            uploads: /srv/oc3/uploads
            static: /srv/oc3/static
            ...
}

func (oDb *DB) InsertSvcAction(ctx context.Context, svcID, nodeID uuid.UUID, action string, begin time.Time, status_log string, sid string, cron bool, end time.Time, status string) (int64, error) {
query := "INSERT INTO svcactions (svc_id, node_id, action, begin, status_log, sid, cron"
Copy link
Contributor

Choose a reason for hiding this comment

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

can use on duplicate key update and merge insert and update

@sghf sghf closed this Jan 16, 2026
@sghf sghf deleted the BeginAction branch January 16, 2026 16:01
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