Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6631205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:30:48+00:00 2026-05-25T22:30:48+00:00

I have the following situation: Three tasks: A,B,C (Implemented as Workling workers) Two user

  • 0

I have the following situation:

  • Three tasks: A,B,C (Implemented as Workling workers)
  • Two user events (Calls of a controller method)

The tasks are triggered this way:

  1. The first user event triggers Task A and Task B.
  2. Then an optional user event can trigger Task C, but that task must not run until Task A and B are finished.

How can I enforce this chain of events?

One way would be to perform Task A and B at the beginning of Task C, but the user event triggering Task C might never happen, but Task A and B must be performed nevertheless.

In a “normal” program I’d have the whole arsenal of synchronization objects at my disposal (mutexes, semaphores, critical sections, …). But what can I do here?

(If it matters, the Rails application will run on a Linux server and Workling is set up to use Starling)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:30:48+00:00Added an answer on May 25, 2026 at 10:30 pm

    You can use a distributed lock:

    http://github.com/tanin47/ruby_redis_lock (which is mine)

    It requires Redis, though.

    Or, you can build a lock library by yourself with other dbms, e.g. MySQL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following situation: I have loged user, standard authentication with DB table $authAdapter
I have the following situation: Three concrete service classes implement a service interface: one
My situation is following. I have one Activity that contains three main parts. At
The following is the situation: I have three String parameters a1,a2,a3 Each of the
I have the following mis-fortunate situation: Three directories ( A , B and C
I need a javascript solution for the following situation: I have two select drop
I have the following situation: There is a tool that gets an XSLT from
I have the following situation: There is one custom view inside of the first
I have following situation. A main table and many other tables linked together with
I have following situation. In a constructor of a pseudo class I attach a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.