bacalhau-project / bacalhau

Compute over Data framework for public, transparent, and optionally verifiable computation
https://docs.bacalhau.org
Apache License 2.0
711 stars 89 forks source link

Cannot stop a job using its short ID #4644

Closed frrist closed 1 month ago

frrist commented 1 month ago

Bug Description

frrist@cypress ~ [1]> bacalhau version
 CLIENT  SERVER  LATEST  UPDATE MESSAGE 
 v1.5.0  v1.5.0  1.5.0                  

frrist@cypress ~> bacalhau job list --limit 1000
 CREATED   ID          JOB     TYPE   STATE     
 21:50:40  j-95798596  docker  batch  Completed 
 21:55:07  j-c181116a  docker  batch  Stopped   
 21:57:18  j-48c496be  docker  batch  Queued    

frrist@cypress ~> bacalhau job stop j-48c496be
Checking job status

    Connecting to network  ................  done ✅  0.0s
      Verifying job state  ................  done ✅  0.0s
             Stopping job  ................  err  ❌  0.0s

Error: multiple jobs found for id j-48c496be
Hint:  to resolve this, either:
1. Ensure that the server is running and reachable at http://127.0.0.1:1234
2. Update the configuration to use a different host and port using:
   a. The '--api-host=<new_address> --api-port=<new_port>' flags with your command
   b. The '-c API.Host=<new_host> -c API.Port=<new_port>' flags with your command
   c. Set the host in a configuration file with 'bacalhau config set API.Host=<new_address>' and port with 'bacalhau config set API.Port=<new_port>'
3. If you are trying to reach the demo network, use '--api-host=bootstrap.demo.bacalhau.org' to call the network
frrist@cypress ~ [1]> bacalhau job describe j-48c496be
ID            = j-48c496be-e0e8-49a0-baef-67a2af5efaa7
Name          = Default Job
Namespace     = default
Type          = batch
State         = Queued
Message       = Job queued. not enough nodes to run job. requested: 1, available: 0, suitable: 0.
Count         = 1
Created Time  = 2024-10-21 21:57:18
Modified Time = 2024-10-21 21:57:18
Version       = 0

Summary

Job History
 TIME                 TOPIC       EVENT                                                                             
 2024-10-21 14:57:18  Submission  Job submitted                                                                     
 2024-10-21 14:57:18  Queueing    Job queued. not enough nodes to run job. requested: 1, available: 0, suitable: 0. 

Executions
 ID  NODE ID  STATE  DESIRED  REV.  CREATED  MODIFIED  COMMENT 

frrist@cypress ~> bacalhau job stop j-48c496be
Checking job status

    Connecting to network  ................  done ✅  0.0s
      Verifying job state  ................  done ✅  0.0s
             Stopping job  ................  err  ❌  0.0s

Error: multiple jobs found for id j-48c496be
Hint:  to resolve this, either:
1. Ensure that the server is running and reachable at http://127.0.0.1:1234
2. Update the configuration to use a different host and port using:
   a. The '--api-host=<new_address> --api-port=<new_port>' flags with your command
   b. The '-c API.Host=<new_host> -c API.Port=<new_port>' flags with your command
   c. Set the host in a configuration file with 'bacalhau config set API.Host=<new_address>' and port with 'bacalhau config set API.Port=<new_port>'
3. If you are trying to reach the demo network, use '--api-host=bootstrap.demo.bacalhau.org' to call the network

Strange that it can be described but not stopped.

Bacalhau Versions

linear[bot] commented 1 month ago

ENG-290 Cannot stop a job using its short ID