woodpecker/server/model
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
..
agent.go Add agent no-schedule flag (#1567) 2023-01-30 20:18:48 +01:00
config.go Rename to pipeline in DB and JSONs (#1296) 2022-10-22 15:54:43 +02:00
const.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cron.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
encryption.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
environ.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
event.go Rename to pipeline in DB and JSONs (#1296) 2022-10-22 15:54:43 +02:00
feed.go Fix pipeline feed not updated by new events (#1424) 2022-11-18 10:59:24 +01:00
file.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
log.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
netrc.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
pagination.go Add PR pipeline list (#1641) 2023-03-19 10:43:57 +01:00
perm.go Fetch repositories with remote ID if possible (#1078) 2022-09-05 17:08:51 +02:00
pipeline.go Add pull request labels as environment variable (#1321) 2023-03-17 03:43:04 +01:00
pull_request.go Add PR pipeline list (#1641) 2023-03-19 10:43:57 +01:00
redirection.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
registry.go Fix registry delete (#532) 2021-11-25 19:04:36 +01:00
repo.go Only inject netrc to trusted clone plugins (#1352) 2023-03-20 21:17:49 +01:00
resource_limit.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
secret.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
secret_test.go Add field for image list in Secrets Repo Settings (Web UI) (#638) 2021-12-30 07:26:36 +01:00
server_config.go Use asym key to sign webhooks (#916) 2022-06-01 20:06:27 +02:00
settings.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
step.go Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
step_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
task.go Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
team.go Rename remote to forge (#1357) 2022-11-05 00:35:06 +01:00
user.go Add users UI for admins (#1634) 2023-03-18 21:21:20 +01:00
user_test.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00