python-gitlab icon indicating copy to clipboard operation
python-gitlab copied to clipboard

Add sort support to runner-job command

Open glensc opened this issue 11 months ago • 0 comments

Description of the problem, including code/CLI snippet

I'm trying to inspect recent jobs that are submitted to runner, but by default it gives them oldest first.

I can use --get-all and sort with jq, but runner is 4 years old, so this takes very long to query.

Also, if I could pass date filter, that can also be useful.

Expected Behavior

$ gitlab -o json runner-job list --runner-id=210 --get-all  --sort=desc

Actual Behavior

$ gitlab -o json runner-job list --runner-id=210 --get-all 

Specifications

  • python-gitlab version: 5.3.1
  • Gitlab server version (or gitlab.com): v17.7.1-ee

glensc avatar Jan 20 '25 18:01 glensc