GitHub Actions: Concurrency

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 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 6 หลายเดือนก่อน

    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

  • @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,

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

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

  • @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?

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

    Thanks a lot

  • @janjoosse3325
    @janjoosse3325 3 ปีที่แล้ว

    Nice video!

  • @gomjellie
    @gomjellie 2 ปีที่แล้ว

    thanks!

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

    gg