Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

job run doesn't exist for long running jobs #4421

Closed
wdbaruni opened this issue Sep 17, 2024 · 2 comments · Fixed by #4468
Closed

job run doesn't exist for long running jobs #4421

wdbaruni opened this issue Sep 17, 2024 · 2 comments · Fixed by #4468
Assignees
Labels
th/game-day Issues reported during game day testing

Comments

@wdbaruni
Copy link
Member

When submitting a service or daemon job, the expectation is for the job progress to exist as soon as the job is scheduled or maybe just when accepted. Whatever behaviour we had with v1.4.0

The case today is that job progress doesn't exist and waits for the jobs to be completed, which will never happen unless the user stops the job.

How to reproduce

  1. Create a file named service_job.yaml with the following content:
name: Long-Running Service Job
type: service
namespace: default
count: 3
tasks:
  - name: main
    engine:
      type: docker
      params:
        Image: ubuntu:latest
        Entrypoint:
          - /bin/bash
        Parameters:
          - -c
          - while true; do (date && echo "Service job running" && sleep 5); done
  1. Submit the service job using the YAML file:
→ bacalhau-1.5.0 job run service_job.yaml

Job successfully submitted. Job ID: j-c2123969-2e93-4773-acfd-d4ee6a4d105e
Checking job status... (Enter Ctrl+C to exit at any time, your job will continue running):

 TIME                 EXEC. ID    TOPIC         EVENT
 Sep 17 13:07:25.172  e-05f1d99f  Execution     Running
 Sep 17 13:07:25.172              State Update  Running
 Sep 17 13:07:25.222  e-f6af9dd0  Execution     Running
 Sep 17 13:07:25.222  e-dd7941f8  Execution     Running
@wdbaruni wdbaruni added the th/game-day Issues reported during game day testing label Sep 17, 2024
@udsamani udsamani self-assigned this Sep 17, 2024
@udsamani
Copy link
Contributor

@wdbaruni Do you have any default timeout in mind ?

@wdbaruni
Copy link
Member Author

I remember we had something before with v1.4.0. If not lets say 5 minutes?

@udsamani udsamani moved this from Inbox to In Progress in Engineering Planning Sep 18, 2024
This was linked to pull requests Sep 18, 2024
@udsamani udsamani moved this from In Progress to In Review in Engineering Planning Sep 18, 2024
@github-project-automation github-project-automation bot moved this from In Review to Done in Engineering Planning Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
th/game-day Issues reported during game day testing
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants