from __future__ import absolute_import
from ddsc_worker.celery import celery


@celery.task
def add(x, y):
    return x + y


@celery.task
def mul(x, y):
    return x + y

from __future__ import absolute_import
from ddsc_worker.celery import celery
import time


@celery.task
def add(x, y):
    time.sleep(10)
    return x + y


@celery.task
def mul(x, y):
    time.sleep(2)
    return x * y

Add sleep to simulate work
Add sleep to simulate work

  from __future__ import absolute_import
  from ddsc_worker.celery import celery
+ import time
  
  
  @celery.task
  def add(x, y):
+     time.sleep(10)
      return x + y
  
  
  @celery.task
  def mul(x, y):
+     time.sleep(2)
-     return x + y
+     return x * y
  
Add sleep to simulate work
## Code Before:
from __future__ import absolute_import
from ddsc_worker.celery import celery


@celery.task
def add(x, y):
    return x + y


@celery.task
def mul(x, y):
    return x + y

## Instruction:
Add sleep to simulate work
## Code After:
from __future__ import absolute_import
from ddsc_worker.celery import celery
import time


@celery.task
def add(x, y):
    time.sleep(10)
    return x + y


@celery.task
def mul(x, y):
    time.sleep(2)
    return x * y
