Skip to content

canceling a task when running tests (prevent execution of scheduled task) #95

@GZLiew

Description

@GZLiew

Hi I try the following code but it doesnt stop the emulator from cancelling my tasks
the task still tries to execute even though I deleted it

  const [tasks] = await cloudTasksClient.listTasks({
    parent: queueName,
  });
  await Promise.all(
    tasks.map((task) =>
      cloudTasksClient.deleteTask({
        name: task.name,
      })
    )
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions