autoSchedule a specific task

I tried to reschedule a specific task with gantt.autoSchedule(taskId) but I am feeling that it is auto_scheduling the wole project.

Here is the code:
gantt.config = {
…gantt.config,
fit_tasks: true,
auto_scheduling: true,
auto_scheduling_strict: false,
auto_scheduling_initial: false
};
gantt.init(‘gantt_here’);
gantt.parse({
data: [
{ id: 1, text: ‘Project #1’, start_date: ‘01-03-2019’, duration: 3 },
{ id: 2, text: ‘Project #2’, start_date: ‘07-03-2019’, duration: 2 },
{ id: 3, text: ‘Task #1’, start_date: ‘11-03-2019’, duration: 2 }
],
links: [{ id: 1, source: 1, target: 2, type: ‘0’ }, { id: 2, source: 2, target: 3, type: ‘0’ }]
});

and here is a gif of the possible bug. Instead of rescheduling only ‘Task #1’, it is rescheduling ‘Task #1’ and ‘Project #2
bug

Hi @ouassim
I think this is expected behavior.
Auto scheduling recalculates the whole connected group of tasks, which includes both downstream and upstream relations ( both successors and predecessors) of the task.
https://docs.dhtmlx.com/gantt/api__gantt_getconnectedgroup.html
Please check this gif: http://recordit.co/NY1uVdcqMr - it includes your code