Hedging basics?

Apologies if this post is in the wrong section but I have a question about hedging.

Iâm interested to know how traders of physical commodities control pricing risk using the financial markets or any other method.

Example-
An oil trading company enters into a long-term contract with a producer to purchase x number of barrels of oil a year for a certain price, with the intention of selling on to his customers at market price.
Between the time of his agreement and eventual sale, the market price could drop.

How do they cover this risk?

Would anyone be kind enough to explain some of the basics to this novice please ?

traders are have a time frame of 1-3 months they can't predict what would happen 1 year in volatile futures contracts.

Quote from Highterm:

Apologies if this post is in the wrong section but I have a question about hedging.

Iâm interested to know how traders of physical commodities control pricing risk using the financial markets or any other method.

Example-
An oil trading company enters into a long-term contract with a producer to purchase x number of barrels of oil a year for a certain price, with the intention of selling on to his customers at market price.
Between the time of his agreement and eventual sale, the market price could drop.

How do they cover this risk?

Would anyone be kind enough to explain some of the basics to this novice please ?