Giter VIP home page Giter VIP logo

Comments (6)

madhur-ob avatar madhur-ob commented on September 26, 2024

According to https://docs.aws.amazon.com/batch/latest/userguide/using_awslogs.html#create_awslogs_logdriver_options
the default is aws/batch/job

Moreover, check the usage here: #1767 (comment)
We supply try/batch/custom/demo i.e. without the / in beginning and it worked as shown in #1767 (comment)

from metaflow.

madhur-ob avatar madhur-ob commented on September 26, 2024

@stathva Did you have issues with running flows with what we have here i.e. aws/batch/job without the / in beginning?

from metaflow.

stathva avatar stathva commented on September 26, 2024

@stathva Did you have issues with running flows with what we have here i.e. aws/batch/job without the / in beginning?

@madhur-ob yes, we deploy Metflow Wofklows as StepFunctions, our workflow is using the @batch decorator to define the container image and step resource requirements but it doesn't specify a log group.

The jobs failed with the following error:

"Reason": "CannotStartContainerError: Error response from daemon: failed to initialise logging driver: failed to create Cloudwatch log stream: InvalidParameterException: Log groups starting with AWS/ are reserved for AWS.",

So the problem is not missing / in general like in the try/batch/custom/demo example but using aws/* since its reserved.

from metaflow.

madhur-ob avatar madhur-ob commented on September 26, 2024

Aah, I think the fix is to not include it at all I guess...let me remove it, that way, it will consider aws/batch/job by default..

from metaflow.

simonhs87 avatar simonhs87 commented on September 26, 2024

This happened to me now for unknown reasons. The "fix" is to assign log_options=["awslogs-group:/aws/batch/job"] to every batch step in the step functions i create. Using metaflow 2.11.6.

from metaflow.

madhur-ob avatar madhur-ob commented on September 26, 2024

@simonhs87 Can you please try with 2.11.9? There was one more fix made in #1786

from metaflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.