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

QA the cache property on WorkingDirectory across all task runners as we keep seeing users reporting issues with it #7621

Open
anna-geller opened this issue Feb 27, 2025 — with Slack · 0 comments
Assignees
Labels
area/backend Needs backend code changes area/qa Issues related to QA, testing, and reproducing bug reports bug Something isn't working

Comments

Copy link
Member

User: "I've trying to track down a weird error we pretty much once or twice a day.
It seems to be related to caching, but that could be a red herring.
I've included an example flow, but I don't think this is consistently reproducible error. This flow is on a trigger than runs every 10 minutes and usually between midnight and 4am mountain time the error in the screenshot will occur and that error is thrown on the fileSystem create working directory task. Subsequent executions run fine. but it consistently has this error ever 24-28 hrs."

inputs:
  - id: account_id
    type: STRING
    defaults: 1
    required: false
tasks:
  - id: add_labels
    type: io.kestra.plugin.core.execution.Labels
    labels:
      account: "{{ inputs.account_id }}"

  - id: fileSystem
    type: io.kestra.plugin.core.flow.WorkingDirectory
    cache:
      patterns:
        - cache/pip/**
      ttl: PT24H

    tasks:
      - id: cloneRepository
        type: "io.kestra.plugin.git.Clone"
        url: https://github.com/kestra-io/kestra
        directory: kestra

      - id: python_script
        disabled: false
        type: io.kestra.plugin.scripts.python.Commands
        containerImage: public.ecr.aws/b3t6c4b5/data-science:latest
        taskRunner:
          type: io.kestra.plugin.scripts.runner.docker.Docker
        inputFiles:
          requirements.txt: ""
        beforeCommands:
          - pip install --cache-dir cache/pip -r requirements.txt
        commands:
          - python -c "print('hello')"

triggers:
  - id: 1
    disabled: false
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "*/10 * * * *"
    recoverMissedSchedules: "NONE"
    conditions:
      - type: io.kestra.plugin.core.condition.ExpressionCondition
        expression: "{{ envs.stage == 'prd' }}" # only in production
    inputs:
      account_id: 1

image

Slack Message

@anna-geller anna-geller added area/backend Needs backend code changes area/qa Issues related to QA, testing, and reproducing bug reports bug Something isn't working labels Feb 27, 2025 — with Slack
@github-project-automation github-project-automation bot moved this to Backlog in Issues Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes area/qa Issues related to QA, testing, and reproducing bug reports bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants