molgenis / molgenis-emx2

MOLGENIS EMX2, the latest version of the MOLGENIS data platform.
GNU Lesser General Public License v3.0
11 stars 16 forks source link

Scripts: disabled=true does not work #3817

Closed dtroelofsprins closed 1 month ago

dtroelofsprins commented 1 month ago

What version of EMX2 are you using (see footer) v10.71.0

Describe the bug When setting disabled=true in a scheduled script it is still executed. The only way to prevent the script from being executed is by removing the cron syntax.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://emx2.dev.molgenis.org/_SYSTEM_/tasks/#/scripts'
  2. Schedule the "hello world" script every 30 secs => /30 * ?
  3. Check jobs to see the script it running;
  4. Then put disabled=true => see that the script keeps running

Expected behavior When disabled=true scheduled scripts should not be executed anymore.