@@ -19,7 +19,27 @@ func makeJobs() *cobra.Command {
1919 cmd := & cobra.Command {
2020 Use : "jobs" ,
2121 Short : "List jobs in the build queue" ,
22- Example : ` # Check queued and in_progress jobs for an organisation
22+ Long : `List the queued and in_progress jobs for a OWNER or leave the option off
23+ to see all your authorized organisations.
24+
25+ Troubleshooting:
26+
27+ Why may a job be "stuck" as queued?
28+
29+ You may have overloaded your runners so that jobs have been taken off the queue
30+ after to save thrashing. See also "actuated-cli repair"
31+
32+ Why may a job be showing as in_progress for days?
33+
34+ GitHub's API is often inconsistent, if you open the job page, you may see it's
35+ finished or cancelled, but still showing as running. This is a flaw in GitHub
36+ and they tend to clean these up periodically. We can mark it as hidden on our
37+ end if you reach out to support.
38+ ` ,
39+ Example : ` # Check queued and in_progress jobs for your authorized orgs
40+ actuated-cli jobs [--urls]
41+
42+ # See jobs for a specific organisation, if you have access to multiple:
2343 actuated-cli jobs ORG
2444
2545 # Get the same result, but in JSON format
@@ -33,9 +53,7 @@ func makeJobs() *cobra.Command {
3353 cmd .RunE = runJobsE
3454
3555 cmd .Flags ().BoolP ("verbose" , "v" , false , "Show additional columns in the output" )
36-
3756 cmd .Flags ().BoolP ("json" , "j" , false , "Request output in JSON format" )
38-
3957 cmd .Flags ().BoolP ("urls" , "u" , false , "In verbose mode, control whether to include URLs (URLs always shown in non-verbose mode)" )
4058
4159 return cmd
@@ -106,7 +124,7 @@ func runJobsE(cmd *cobra.Command, args []string) error {
106124 if err := json .Unmarshal ([]byte (res ), & statuses ); err != nil {
107125 return err
108126 }
109-
127+
110128 // In non-verbose mode, always show URLs
111129 // In verbose mode, respect the --urls flag
112130 showURL := ! verbose || includeURL
0 commit comments