function task-done task $argv[1] done and task sync and task end