Skip to content

707 lab 680 update gateway to read bacalhau job state from appropriate state value #708

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

Conversation

thetechnocrat-dev
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Oct 17, 2023

LAB-680 update gateway to read bacalhau job state from appropriate state value

Example from bacalhau describe …

Job:
  APIVersion: V1beta2
  Metadata:
    ClientID: c1cda6a8463a6bd832fa91a04cb2ab3704f7cc5a6761b0ba686781fd5768d114
    CreatedAt: "2023-10-16T22:22:02.854954646Z"
    ID: 2a24c630-c85d-4996-9a84-896787af2a8d
    Requester:
      RequesterNodeID: QmbGhoreFAsrHyfgHokasNhh15TBCxvAp2Dgu2f8KSALqZ
      RequesterPublicKey: CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCo8nD22ehraNiuY+DlS29HCxU/wuB2tep7iMV0Nv4hr0gn48hcO03E27nNpkKecpVTNK9ACuP/o4/Q9RIWlKwu36LfHA2IRgbYQ8J4hsk2npE+Yqm2mwdVtei4PkE0WZNpKauijgWN8rFRjeWvdmpDsPgD77ETMxPSI4g1ISBnW7yTmSoSfP9qthPq8b+VMpHMN/apiBl4tEMeHfIT+PTIwtzMaucml5SsKlhYvcK7C66PLGWZL3n8HDfpRhGTtXl0WmqDMD8z4k7RxmxgwZLE6vnu82ayaTgLR4nKARWrWXjZcsVO700FB0FEENtimiGpwrhX6thAz7ggJIP0FEVZAgMBAAE=
  Spec:
    Deal:
      Concurrency: 1
    Docker: {}
    EngineSpec:
      Params:
        Entrypoint:
        - /bin/bash
        - -c
        - /bin/bash -c "mkdir -p /tmp-inputs/tmp; mkdir -p /tmp-outputs/tmp; cp /inputs/*
          /tmp-inputs/tmp/; ls /tmp-inputs/tmp; cd /src && python /src/inference.py
          --config=/src/configs_clean/bacalhau.yml; mv /tmp-outputs/tmp/* /outputs/;
          mv /outputs/lig_equibind_corrected.sdf /outputs/6qqu_protein_processed_6d08_ligand_docked.sdf;
          mv /tmp-inputs/tmp/*.pdb /outputs/;"
        EnvironmentVariables: null
        Image: ghcr.io/labdao/equibind:mainsha256:21a381d9ab1ff047565685044569c8536a55e489c9531326498b28d6b3cc244f
        Parameters: null
        WorkingDirectory: ""
      Type: docker
    Inputs:
    - CID: QmUWJgY6ohR7NEAk2R3RQyceWU6EF3Nzgj5wb849n4PY5v
      Path: /protein
      StorageSource: ipfs
    - CID: QmPErdymxLwpXcEHnWXYqEVHvRBVnh7kr3Uu5DNt2Y8wMR
      Path: /small_molecule
      StorageSource: ipfs
    Network:
      Type: None
    Outputs:
    - Name: outputs
      Path: /outputs
    PublisherSpec:
      Type: ipfs
    Resources:
      GPU: ""
    Timeout: 3600
    Wasm:
      EntryModule: {}
State:
  CreateTime: "2023-10-16T22:22:02.854954646Z"
  Executions:
  - ComputeReference: e-382e8644-8364-4384-ac64-ae9b0b23ef64
    CreateTime: "2023-10-16T22:24:02.961703803Z"
    JobID: 2a24c630-c85d-4996-9a84-896787af2a8d
    NodeId: QmcKE1UQPUyGKzZTo2B669cfhj4d65HK38Pk1uhnmt3TyE
    PublishedResults: {}
    State: AskForBid
    Status: '. '
    UpdateTime: "2023-10-16T22:24:02.982489463Z"
    Version: 2
  - ComputeReference: e-4f63ae8f-8547-44cd-96a3-3281843004f7
    CreateTime: "2023-10-16T22:22:02.899607378Z"
    DesiredState: 2
    JobID: 2a24c630-c85d-4996-9a84-896787af2a8d
    NodeId: QmXVLf7QtPNki2o1gwR34tan3iNxx2V6Lu8cnAkGVsMTjx
    PublishedResults: {}
    State: Failed
    Status: 'error calculating resource requirements for job: error getting job disk
      space requirements: Post "http://ipfs.stg.labdao.xyz:5001/api/v0/object/stat?arg=%2Fipfs%2FQmUWJgY6ohR7NEAk2R3RQyceWU6EF3Nzgj5wb849n4PY5v":
      context deadline exceeded. execution failed'
    UpdateTime: "2023-10-16T22:24:02.930374982Z"
    Version: 3
  JobID: 2a24c630-c85d-4996-9a84-896787af2a8d
  State: New
  TimeoutAt: "2023-10-16T23:22:02.854954646Z"
  UpdateTime: "2023-10-16T22:22:02.854954747Z"
  Version: 1

State.State updates to Failed, however State still displays as New which isn't what we want

@vercel
Copy link

vercel bot commented Oct 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Oct 17, 2023 5:35pm

@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 17, 2023 17:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 17, 2023 17:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 17, 2023 17:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 17, 2023 17:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 17, 2023 17:38 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 17, 2023 17:38 — with GitHub Actions Inactive
Copy link
Contributor

@acashmoney acashmoney left a comment

Choose a reason for hiding this comment

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

🏌️‍♂️ ⛳

@thetechnocrat-dev thetechnocrat-dev merged commit b42e187 into main Oct 17, 2023
@thetechnocrat-dev thetechnocrat-dev deleted the 707-lab-680-update-gateway-to-read-bacalhau-job-state-from-appropriate-state-value branch October 17, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LAB-680] update gateway to read bacalhau job state from appropriate state value
2 participants