Depending on the task, there might be a probation period. During the probationary period, either party can terminate the employment contract. However, the employment contract cannot be terminated on discriminatory or otherwise inappropriate grounds in relation to the purpose of the probation period. As a general rule, the probation period can last no more than six months. If a fixed-term employment relationship lasts less than 12 months, you can only agree on a probationary period that is no longer than half of the duration of the employment relationship.
The period of notice is written in the employment contract. It can also be written in a fixed-term contract, in which case it is a hybrid fixed-term contract.