jina-ai / discoart

🪩 Create Disco Diffusion artworks in one line
Other
3.84k stars 249 forks source link

bug: replica = 1 doesnt work? #167

Open brokeDude2901 opened 2 years ago

brokeDude2901 commented 2 years ago

It seem discoart doesn't respect replica = 1 settings in .yml file:

jtype: Flow
with:
  protocol: http
  monitoring: false
  cors: true
  port: 51001
  port_monitoring: 51002  # prometheus monitoring port
  env:
    JINA_LOG_LEVEL: debug
    DISCOART_DISABLE_IPYTHON: 1
    DISCOART_DISABLE_RESULT_SUMMARY: 1
    WANDB_MODE: disabled
executors:
  - name: discoart
    uses: DiscoArtExecutor
    replicas: 1  # change this if you have larger VRAM
    floating: false  # new feature in Jina 3.7, set this to true allows `create` to be immediately returned without waiting the response on the client
  - name: poller
    uses: ResultPoller
hanxiao commented 2 years ago

can't reproduce

brokeDude2901 commented 2 years ago
jtype: Flow
with:
  protocol: http
  monitoring: false
  cors: true
  port: 51001
  port_monitoring: 51002  # prometheus monitoring port
  env:
    JINA_LOG_LEVEL: debug
    DISCOART_DISABLE_IPYTHON: 1
    DISCOART_DISABLE_RESULT_SUMMARY: 1
    WANDB_MODE: disabled
executors:
  - name: discoart
    uses: DiscoArtExecutor
    replicas: 1  # change this if you have larger VRAM
    floating: false  # new feature in Jina 3.7, set this to true allows `create` to be immediately returned without waiting the response on the client
  - name: poller
    uses: ResultPoller

Not sure if this is bug or intended: case 1: replicas settings is set to 1 in .yml From one machine:

case 2: replicas settings is set to 2 in .yml From one machine: