woodpecker/server/store/datastore
Anbraten f13ffc2c8f
Save agent-id for tasks and add endpoint to get agent tasks (#1631)
Save which agent is running a task. This is now visible in the admin UI
in the queue and in the agent details screen.

# changes
- [x] save id of agent executing a task
- [x] add endpoint to get tasks of an agent for #999 
- [x] show assigned agent-id in queue
- [x] (offtopic) use same colors for queue stats and icons (similar to
the ones used by pipelines)
- [x] (offtopic) use badges for queue labels & dependencies


![image](https://user-images.githubusercontent.com/6918444/226541271-23f3b7b2-7a08-45c2-a2e6-1c7fc31b6f1d.png)
2023-03-21 15:10:43 +02:00
..
migration Add users UI for admins (#1634) 2023-03-18 21:21:20 +01:00
agent.go Store an agents list and add agent heartbeats (#1189) 2023-01-28 14:13:04 +01:00
config.go Migrate sql querys to xorm query builder (#1356) 2022-10-31 16:08:57 +01:00
config_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
cron.go Fix linter (#1647) 2023-03-18 20:35:27 +01:00
cron_test.go Add cron feature (#934) 2022-09-01 00:36:32 +02:00
engine.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
engine_test.go Fix tests and pipeline (#732) 2022-01-31 14:39:53 +01:00
errors.go Check if repo exists before creating pipeline (#1297) 2022-10-22 01:34:11 +02:00
feed.go Fix pipeline feed not updated by new events (#1424) 2022-11-18 10:59:24 +01:00
feed_test.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
file.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
file_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
helper.go Return return 404 if registry to delete do not exist (#1278) 2022-10-18 01:48:04 +02:00
init.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
init_cgo.go Add linter revive (#554) 2021-12-01 14:22:06 +01:00
log.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
log_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
permission.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
permission_test.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
pipeline.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
pipeline_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
redirection.go Fetch repositories with remote ID if possible (#1078) 2022-09-05 17:08:51 +02:00
redirection_test.go Return return 404 if registry to delete do not exist (#1278) 2022-10-18 01:48:04 +02:00
registry.go Fix registry delete (#532) 2021-11-25 19:04:36 +01:00
registry_test.go Return return 404 if registry to delete do not exist (#1278) 2022-10-18 01:48:04 +02:00
repo.go Various fixes and improvements (#1643) 2023-03-19 13:52:58 +01:00
repo_test.go Various fixes and improvements (#1643) 2023-03-19 13:52:58 +01:00
secret.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
secret_test.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
server_config.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
server_config_test.go Use asym key to sign webhooks (#916) 2022-06-01 20:06:27 +02:00
step.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
step_test.go Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
task.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
task_test.go Add queue details UI for admins (#1632) 2023-03-20 04:50:56 +01:00
user.go Migrate sql querys to xorm query builder (#1356) 2022-10-31 16:08:57 +01:00
users_test.go Add users UI for admins (#1634) 2023-03-18 21:21:20 +01:00