Skip to content

Conversation

@joschahenningsen
Copy link
Member

Motivation and Context

Description

Steps for Testing

Prerequisites:

  • 1 Lecturer
  • 2 Students
  • 1 Livestream
  1. Log in
  2. Navigate to a Livestream
  3. ...

Screenshots

err := r.runSingularAction(c, action, data, log, job)
if err != nil {
log.Error("action error", "error", err) // use action specific logger
if actions.IsAbortingError(err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry if I am wrong but could this not lead to an infinite loop if an error is not an AbortingError? like when the ffmpeg command fails for other reasons?

}
} else {
break // escape retry loop on no error
return // Action done without error
Copy link
Contributor

Choose a reason for hiding this comment

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

and here, if 'a' has multiple actions and the first action has no error, would it not just return the function without finishing the other actions? please let me know if I am wrong though

Copy link
Contributor

@DawinYurtseven DawinYurtseven left a comment

Choose a reason for hiding this comment

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

everything that is new seems fine but the comments I'd like to at least know if it is intended for now or if they have been oversights (or if I am wrong)

@DawinYurtseven
Copy link
Contributor

after testing with grpcurl, it turns out that when the a job is created, the actions in the struct are not assigned to it, leaving to a access to nil error. I want to make sure if I am doing it right so:

grpcurl -plaintext -use-reflection -d '{"stream_id":1, "version": "STREAM_VERSION_COMBINED", "end": "2025-03-11T16:00:00Z", "ffmpeg_global_options": "-rtsp_transport tcp", "ffmpeg_output_options": "-c:a copy -c:v copy", "input": "rtsp://172.24.17.21/extron2"}' localhost:52735 protobuf.RunnerService/RequestStream

my guess is that in the RunAction function the jobContext struct has no actions map initiated, leaving to a nil map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants