Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

Scheduler task list is unpredictably ordered

  • 199 Views
  • Last Post 24 March 2020
GravityBox posted this 24 March 2020

OS Name/Version:
This is a personal at-home server
Debian GNU/Linux 10 (buster) | 15969MB RAM
1x AMD Ryzen 5 3600X 6-Core Processor(6C/12T)

Product Name/Version:
AMP Release "Lapetus" v1.9.6.4, built 06/03/2020 14:05

Problem Description:
Under scheduler, tasks for triggers seem to be ordered randomly(?) or by ID rather than the order tasks were added.

Steps to reproduce:
It happens with 2 or more tasks. What I've done with my minecraft server:

  1. Add new trigger > a player sends a message
  2. Add task > send a message to a specific player: {@User} Message: 1
  3. Add task > send a message to a specific player: {@User} Message: 2
  4. Add task > send a message to a specific player: {@User} Message: 3
  5. Add task > send a message to a specific player: {@User} Message: 4

I added these in order: 1,2,3,4 - AMP displays to me in this order: 1,3,4,2
In minecraft, when it triggers, it also sends those messages in order of: 1, 3, 4, 2

It seems the ordering is totally random. I can add as few as 2 tasks in this manner, and it's always a gamble of how it will be ordered, despite AMP executing tasks in top-down order.

Actions taken to resolve so far:
I'm not sure what I can do to fix this. The only workaround I know of is brute force re-adding tasks until the desired order is achieved.

Thank you for your time

Order By: Standard | Newest | Votes
Mike posted this 24 March 2020

Can you submit this bug to Github as well please? https://github.com/cubecoders/amp

GravityBox posted this 24 March 2020

Alright, can do

Close