Google Cloud Batch Quickstart

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 11

  • @BillTheGreek7
    @BillTheGreek7 ปีที่แล้ว +1

    Subscribed just for the hand-on and no filler content! Excellent video!

  • @anuragsingh711
    @anuragsingh711 5 หลายเดือนก่อน

    this is perfect tutorial loved it...
    But I have 1 question .
    1. can we submit batch jobs with custom environment variable using python and using cloud functions.(automated way).
    if yes , can you please point me to the docs or any tutorial if you have created.

    • @vladsavecoding4111
      @vladsavecoding4111  5 หลายเดือนก่อน

      It is possible. Take a look at this documentation page for creating batch jobs with Python.
      cloud.google.com/batch/docs/samples/batch-create-container-job?hl=en#code-sample
      You can add your environment variables in runnable.environment
      cloud.google.com/php/docs/reference/cloud-batch/latest/V1.Runnable

  • @StraightCoding
    @StraightCoding หลายเดือนก่อน

    HI, for the cloud batch jobs, what permissions or roles are needed to create container jobs?

  • @chimapaul905
    @chimapaul905 ปีที่แล้ว +1

    This was quite an insightful video did not know Cloud run jobs and Batch jobs are two different products. Do you know why the logs are indicating "ERROR" severity instead of "INFO" as logged by your script?

    • @vladsavecoding4111
      @vladsavecoding4111  ปีที่แล้ว

      Thanks. There's a lot of overlap between Cloud Run Jobs and Batch Jobs. I think they should consolidate these two features. The only notable difference right now is the 1h timeout for Cloud Run Jobs.
      Regarding logs ending up in error. This is because the logging agent in Batch sends everything that is printed to stderr to Stackdriver as an error entry and by default the Python logging client prints to stderr. You can change that by doing something like logging.basicConfig(level=logging.INFO, stream=sys.stdout). The other option is to use the google.cloud.logging library but the lines will not be linked from the job events.

    • @TheRiblu
      @TheRiblu 4 หลายเดือนก่อน

      @@vladsavecoding4111 It's not working, any suggestion?

    • @TheRiblu
      @TheRiblu 4 หลายเดือนก่อน

      @@vladsavecoding4111 logging.basicConfig(level=logging.INFO, stream=sys.stdout) didn't work.

  • @marwentrabelsi2983
    @marwentrabelsi2983 8 หลายเดือนก่อน +1

    can we use GPU in batch??? i can not find GPU tabs like in compute engine, so weird!

    • @vladsavecoding4111
      @vladsavecoding4111  7 หลายเดือนก่อน

      Never tried but looks like it is possible cloud.google.com/batch/docs/create-run-job-gpus