Nullity and voidability of contracts

Facts: A agrees with his religious community B that he will work sixteen hours a day, six days a week (excluding vacation) until the end of his life. When he falls ill, a representative of B demands that he perform his contractually agreed work.

Question: Has a contract been concluded and must A comply with B’s demand?