GitHub Actions: Concurrency

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • Using the "concurrency" keyword, you can better control your GitHub Action workflows to ensure they run how you want them to run. For example, you want to make sure you are only have one workflow deploying to production at any specific time.
    This video will walk you through getting started with the "concurrency" keyword in GitHub Actions
    Find Me:
    Website: mickeygousset.com​
    GitHub: github.com/mic...
    Twitter: / mickey_gousset​
    Twitch: / mickeygousset

КОМЕНТАРІ • 28

  • @thangpham5864
    @thangpham5864 2 роки тому +2

    Ur a godsend was doing research on how to implement this for a company's project. Thanks so much!

  • @sany2k8
    @sany2k8 Рік тому

    The best video channel on GitHub workflow with proper hands on example

  • @DevaMARICHAMY
    @DevaMARICHAMY 5 місяців тому

    Clear and crisp explanation! Thank you so much!

  • @bulelanibotman
    @bulelanibotman 2 роки тому

    thank you so much! i absolutely love your calm voice, i understand stuff very nicely

  • @FoysalAhmedfashuvo
    @FoysalAhmedfashuvo Рік тому

    Thanks for the detailed video. It helped me to better understand the concept :)

  • @MrBa143
    @MrBa143 2 роки тому +3

    I want to prevent 2 different workflows from running at the same time, but its still important for me that all workflows are being run, so i cant have pending workflows getting cancelled, just because a new one is added to the queue. Is there anyway around this?

    • @morganl9601
      @morganl9601 Рік тому

      Found any solution ? I'm in the exact same situation.

    • @MrBa143
      @MrBa143 Рік тому

      @@morganl9601 Wasnt possible to my knowledge

    • @mymawazo1449
      @mymawazo1449 Рік тому

      use the "needs" keyword i.e job1 "needs" job2. You can then add if: always or if: success

    • @MrBa143
      @MrBa143 Рік тому

      @@mymawazo1449 Wouldnt that be 2 jobs in 1 workflow? Not 2 different workflows

    • @mymawazo1449
      @mymawazo1449 Рік тому

      @@MrBa143 Ah your right, I misunderstood your question. From what I can gather, a hack would be, to use a repository_dispatch custom event from one workflow which you can then listen for in another workflow. I've not tried this but it might work,

  • @RABWA333
    @RABWA333 10 місяців тому

    Thanks a lot

  • @grzegorzbajson3897
    @grzegorzbajson3897 Рік тому

    Thanks for this video. Would you have any idea how to implement this concurrency between different repos within one Organisation?

    • @MickeyGousset
      @MickeyGousset  Рік тому

      Oooohhh that is an interesting idea but it won’t work out of the box I don’t think, because it’s based off the same workflow being started.
      What’s your scenario with this?

    • @grzegorzbajson3897
      @grzegorzbajson3897 Рік тому

      @@MickeyGousset Many multiservices from different repo tested in one k8s cluster. So far I implemented my own locking mechanism that uses org variable, but it's not reliable, because there is no atomic operation for reading-and-writing var value.

    • @MickeyGousset
      @MickeyGousset  Рік тому

      @@grzegorzbajson3897 ah so you want to make sure that if one repo is deploying that a second repo waits till the first is done? Let me think on that

    • @grzegorzbajson3897
      @grzegorzbajson3897 Рік тому

      @@MickeyGousset Yes, that's right. Thanks!

    • @kiever
      @kiever Рік тому

      +

  • @SohailKhan-ll9kh
    @SohailKhan-ll9kh 10 місяців тому

    Hey Mickey. Where can I find this particular file in the repositories?

    • @MickeyGousset
      @MickeyGousset  10 місяців тому

      If you’re referring to the workflow file, it should be in the .github folder, and then in a folder called workflows.

    • @SohailKhan-ll9kh
      @SohailKhan-ll9kh 10 місяців тому

      Great. Do you know which repo its in?

  • @janjoosse3325
    @janjoosse3325 2 роки тому

    Nice video!

  • @gomjellie
    @gomjellie 2 роки тому

    thanks!

  • @ohyesthelion
    @ohyesthelion 5 місяців тому

    gg