Define better terms for WAITING and DELAYED states

Bug #1470369 reported by Dmitri Zimine
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Renat Akhmerov
Liberty
Fix Released
High
Renat Akhmerov
Changed in mistral:
assignee: nobody → Renat Akhmerov (rakhmerov)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

So just to have all explanations at one place I'll summarize the semantical difference.

WAITING - workflow execution cursor already reached the task but it won't run until required triggering conditions are met. For "join" task the condition is completion of its inbound tasks. So the task may be hanging in this state forever.

DELAYED - This is basically a flavor of RUNNING state which means that task will eventually complete (with success or error), all triggering conditions are met. But the task is postponed for some period of time. Currently, this state is only needed for policies.

Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

Possible renaming options:

1. WAITING -> UNDECIDED
    DELAYED -> DELAYED

2. WAITING -> WAITING
     DELAYED -> RUNNING_DELAYED

3. WAITING -> WAITING
     DELAYED -> POSTPONED

4. WAITING -> WAITING
     DELAYED -> DEFERRED (but IMO it's not any better)

5. WAITING -> WAITING
     DELAYED -> FUTURE (inspired by spiff workflow)

Any other suggestions?

Revision history for this message
Lingxian Kong (kong) wrote :

Hi, Renat, thanks for so many choices :-)

I prefer 1st one:
WAITING -> UNDECIDED
    DELAYED -> DELAYED

Revision history for this message
Winson Chan (winson-c-chan) wrote :

I prefer #3.
WAITING -> WAITING
DELAYED -> POSTPONED

UNDECIDED is not accurate. The join task knows how many inbound tasks succeeded and it made a decision and that is to wait.

Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

Yes, for some reason I like renaming DELAYED to POSTPONED. It seems to have more precise meaning of being obliged to execute after some period of time. I may be wrong though since I'm not a native speaker.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/227728
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=3707062d67b8f8c51d5ee2aa6808793c81d81f5c
Submitter: Jenkins
Branch: master

commit 3707062d67b8f8c51d5ee2aa6808793c81d81f5c
Author: Renat Akhmerov <email address hidden>
Date: Fri Sep 25 15:07:28 2015 +0600

    Renaming state DELAYED to RUNNING_DELAYED

    * As discussed in the mailing list it's better to rename DELAYED
      to RUNNING_DELAYED so that we semantically express it as a substate
      of RUNNING whereas WAITING is not.

    Closes-Bug: #1470369
    Change-Id: I3b7033d894d29fe755d4d0262c1029c4576421cd

Changed in mistral:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to mistral (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/228354

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to mistral (master)

Reviewed: https://review.openstack.org/228354
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=b0cc7a4830fd807fb71c90e1d2b903ab975d3330
Submitter: Jenkins
Branch: master

commit b0cc7a4830fd807fb71c90e1d2b903ab975d3330
Author: Lingxian Kong <email address hidden>
Date: Mon Sep 28 16:27:32 2015 +0800

    Renaming state DELAYED to RUNNING_DELAYED in doc

    Please refer to https://review.openstack.org/#/c/227728/

    Change-Id: Iafe9e9949eb36a0df591e57ea3fae3d91634263a
    Related-Bug: #1470369

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to mistral (stable/liberty)

Related fix proposed to branch: stable/liberty
Review: https://review.openstack.org/233959

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to mistral (stable/liberty)

Reviewed: https://review.openstack.org/233959
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=e3fe7ff10e871717c40b73e30eb07d4f8b055db0
Submitter: Jenkins
Branch: stable/liberty

commit e3fe7ff10e871717c40b73e30eb07d4f8b055db0
Author: Lingxian Kong <email address hidden>
Date: Mon Sep 28 16:27:32 2015 +0800

    Renaming state DELAYED to RUNNING_DELAYED in doc

    Please refer to https://review.openstack.org/#/c/227728/

    Change-Id: Iafe9e9949eb36a0df591e57ea3fae3d91634263a
    Related-Bug: #1470369
    (cherry picked from commit b0cc7a4830fd807fb71c90e1d2b903ab975d3330)

tags: added: in-stable-liberty
Changed in mistral:
milestone: 1.0.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.